Documentation
¶
Index ¶
- type Blockchain
- func (b *Blockchain) AddCurrentTradesInBatch(i uint64)
- func (b *Blockchain) AddTotalAmendOrder(val uint64) uint64
- func (b *Blockchain) AddTotalCancelOrder(val uint64) uint64
- func (b *Blockchain) AddTotalCreateOrder(val uint64) uint64
- func (b *Blockchain) AddTotalOrders(val uint64) uint64
- func (b *Blockchain) AddTotalTrades(val uint64) uint64
- func (b Blockchain) AverageOrdersPerBatch() uint64
- func (b *Blockchain) AverageTxPerBatch() uint64
- func (b *Blockchain) AverageTxSizeBytes() uint64
- func (b Blockchain) BlockDuration() uint64
- func (b Blockchain) CurrentEventsInBatch() uint64
- func (b Blockchain) CurrentOrdersInBatch() uint64
- func (b Blockchain) CurrentTradesInBatch() uint64
- func (b *Blockchain) EventsPerSecond() uint64
- func (b Blockchain) Hash() string
- func (b Blockchain) Height() uint64
- func (b *Blockchain) IncCurrentOrdersInBatch()
- func (b *Blockchain) IncHeight()
- func (b *Blockchain) IncTotalAmendOrder()
- func (b *Blockchain) IncTotalBatches()
- func (b *Blockchain) IncTotalCancelOrder()
- func (b *Blockchain) IncTotalCreateOrder()
- func (b *Blockchain) IncTotalOrders()
- func (b *Blockchain) IncTotalTxCurrentBatch()
- func (b *Blockchain) IncrementEventCount(count uint64)
- func (b *Blockchain) NewBatch()
- func (b Blockchain) OrdersPerSecond() uint64
- func (b *Blockchain) ResetBatchTotals()
- func (b *Blockchain) SetAverageOrdersPerBatch(i uint64)
- func (b *Blockchain) SetAverageTxPerBatch(i uint64)
- func (b *Blockchain) SetAverageTxSizeBytes(i uint64)
- func (b *Blockchain) SetBlockDuration(val uint64)
- func (b *Blockchain) SetEventsPerSecond(val uint64)
- func (b *Blockchain) SetHash(hash string)
- func (b *Blockchain) SetHeight(height uint64)
- func (b *Blockchain) SetOrdersPerSecond(val uint64)
- func (b *Blockchain) SetTotalOrdersLastBatch(i uint64)
- func (b *Blockchain) SetTotalTradesLastBatch(i uint64)
- func (b *Blockchain) SetTotalTxCurrentBatch(i uint64)
- func (b *Blockchain) SetTotalTxLastBatch(i uint64)
- func (b *Blockchain) SetTradesPerSecond(val uint64)
- func (b Blockchain) TotalAmendOrder() uint64
- func (b Blockchain) TotalBatches() uint64
- func (b Blockchain) TotalCancelOrder() uint64
- func (b Blockchain) TotalCreateOrder() uint64
- func (b *Blockchain) TotalEventsLastBatch() uint64
- func (b Blockchain) TotalOrders() uint64
- func (b Blockchain) TotalOrdersLastBatch() uint64
- func (b Blockchain) TotalTrades() uint64
- func (b Blockchain) TotalTradesLastBatch() uint64
- func (b *Blockchain) TotalTxCurrentBatch() uint64
- func (b *Blockchain) TotalTxLastBatch() uint64
- func (b Blockchain) TradesPerSecond() uint64
- type Config
- type Stats
- func (s *Stats) BlockHash() string
- func (s *Stats) GetChainVersion() string
- func (s *Stats) GetEpochExpireTime() time.Time
- func (s *Stats) GetEpochSeq() uint64
- func (s *Stats) GetEpochStartTime() time.Time
- func (s *Stats) GetUptime() time.Time
- func (s *Stats) GetVersion() string
- func (s *Stats) GetVersionHash() string
- func (s *Stats) Height() uint64
- func (s *Stats) OnEpochEvent(_ context.Context, epoch types.Epoch)
- func (s *Stats) OnEpochRestore(_ context.Context, epoch types.Epoch)
- func (s *Stats) ReloadConf(cfg Config)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Blockchain ¶
type Blockchain struct {
// contains filtered or unexported fields
}
Blockchain hold stats over all the vega node.
func (*Blockchain) AddCurrentTradesInBatch ¶
func (b *Blockchain) AddCurrentTradesInBatch(i uint64)
func (*Blockchain) AddTotalAmendOrder ¶
func (b *Blockchain) AddTotalAmendOrder(val uint64) uint64
func (*Blockchain) AddTotalCancelOrder ¶
func (b *Blockchain) AddTotalCancelOrder(val uint64) uint64
func (*Blockchain) AddTotalCreateOrder ¶
func (b *Blockchain) AddTotalCreateOrder(val uint64) uint64
AddTotalCreateOrder - increment total created orders.
func (*Blockchain) AddTotalOrders ¶
func (b *Blockchain) AddTotalOrders(val uint64) uint64
AddTotalOrders increment total orders.
func (*Blockchain) AddTotalTrades ¶
func (b *Blockchain) AddTotalTrades(val uint64) uint64
AddTotalTrades increment total trades.
func (Blockchain) AverageOrdersPerBatch ¶
func (b Blockchain) AverageOrdersPerBatch() uint64
AverageOrdersPerBatch returns the average number of orders accepted per blocks.
func (*Blockchain) AverageTxPerBatch ¶
func (b *Blockchain) AverageTxPerBatch() uint64
AverageTxPerBatch return the average number of transaction per block.
func (*Blockchain) AverageTxSizeBytes ¶
func (b *Blockchain) AverageTxSizeBytes() uint64
AverageTxSizeBytes return the average size in bytes of the transaction sent to vega.
func (Blockchain) BlockDuration ¶
func (b Blockchain) BlockDuration() uint64
BlockDuration return the duration it took to generate the last block.
func (Blockchain) CurrentEventsInBatch ¶ added in v0.68.0
func (b Blockchain) CurrentEventsInBatch() uint64
func (Blockchain) CurrentOrdersInBatch ¶
func (b Blockchain) CurrentOrdersInBatch() uint64
func (Blockchain) CurrentTradesInBatch ¶
func (b Blockchain) CurrentTradesInBatch() uint64
func (*Blockchain) EventsPerSecond ¶ added in v0.68.0
func (b *Blockchain) EventsPerSecond() uint64
func (Blockchain) Hash ¶
func (b Blockchain) Hash() string
func (Blockchain) Height ¶
func (b Blockchain) Height() uint64
Height returns the current heights of the chain.
func (*Blockchain) IncCurrentOrdersInBatch ¶
func (b *Blockchain) IncCurrentOrdersInBatch()
func (*Blockchain) IncHeight ¶
func (b *Blockchain) IncHeight()
IncHeight increment the height of the chain.
func (*Blockchain) IncTotalAmendOrder ¶
func (b *Blockchain) IncTotalAmendOrder()
func (*Blockchain) IncTotalBatches ¶
func (b *Blockchain) IncTotalBatches()
IncTotalBatches increment total batches.
func (*Blockchain) IncTotalCancelOrder ¶
func (b *Blockchain) IncTotalCancelOrder()
func (*Blockchain) IncTotalCreateOrder ¶
func (b *Blockchain) IncTotalCreateOrder()
func (*Blockchain) IncTotalOrders ¶
func (b *Blockchain) IncTotalOrders()
func (*Blockchain) IncTotalTxCurrentBatch ¶
func (b *Blockchain) IncTotalTxCurrentBatch()