poller

package
v0.0.0-...-2292cb8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2020 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchBlocks

func FetchBlocks(client *ethrpc.EthRPC, start, end int) ([]*ethrpc.Block, error)

Types

type Blocks

type Blocks struct {
	// contains filtered or unexported fields
}

func NewBlocks

func NewBlocks(startBlock int, client *ethrpc.EthRPC, backend StatsBackend, logger logrus.Ext1FieldLogger) *Blocks

func (*Blocks) Run

func (b *Blocks) Run()

type StatsBackend

type StatsBackend interface {
	RecordBlocks(blocks ...*ethrpc.Block)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL