Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockCacheEvent ¶
type BlockCacheEvent struct { Fork bool Size float64 `json:"block_size"` Gas float64 `json:"block_gas"` GasLimit float64 `json:"block_gas_limit"` Usage float64 `json:"block_usage"` Interval uint64 Miner string Transactions []*TxEvent poller.BlockEvent // contains filtered or unexported fields }
func (*BlockCacheEvent) Hash ¶
func (blockEvent *BlockCacheEvent) Hash() string
func (*BlockCacheEvent) Number ¶
func (blockEvent *BlockCacheEvent) Number() *big.Int
func (*BlockCacheEvent) ParentHash ¶
func (blockEvent *BlockCacheEvent) ParentHash() string
func (*BlockCacheEvent) SetFork ¶
func (blockEvent *BlockCacheEvent) SetFork(fork bool)
func (*BlockCacheEvent) Timestamp ¶
func (blockEvent *BlockCacheEvent) Timestamp() uint64
type Cache ¶
type Cache struct { *metrics.RawCache Tracking *Tracking poller.Connector // contains filtered or unexported fields }
type EthBlockEvent ¶
type EthBlockEvent interface { poller.BlockEvent ParentHash() string Hash() string SetFork(bool) }
type ExporterCache ¶
type ExporterCache struct { *Cache Fetcher *utils.Fetcher // contains filtered or unexported fields }
func NewExporterCache ¶
func (*ExporterCache) Apply ¶
func (cache *ExporterCache) Apply(event interface{})
func (*ExporterCache) Collect ¶
func (cache *ExporterCache) Collect(ch chan<- prometheus.Metric)
func (*ExporterCache) Describe ¶
func (cache *ExporterCache) Describe(ch chan<- *prometheus.Desc)
func (*ExporterCache) Revert ¶
func (cache *ExporterCache) Revert(event interface{})
func (*ExporterCache) SetReady ¶
func (cache *ExporterCache) SetReady()
type ForkWatcher ¶
type ForkWatcher struct {
// contains filtered or unexported fields
}
func NewForkWatcher ¶
func NewForkWatcher(connector poller.Connector, maxForkSize int) *ForkWatcher
type Miner ¶
type Processor ¶
type Processor struct {
// contains filtered or unexported fields
}
func NewProcessor ¶
func NewProcessor(client *ethclient.Client, fork *ForkWatcher) *Processor
func (*Processor) NewBlockEvent ¶
Click to show internal directories.
Click to hide internal directories.