Documentation ¶
Index ¶
- type BlockEvent
- type Connector
- type Engine
- func (engine *Engine) Client() *ethclient.Client
- func (engine *Engine) Connect() *ethclient.Client
- func (engine *Engine) Init()
- func (engine *Engine) Latest() (*big.Int, error)
- func (engine *Engine) Listen()
- func (engine *Engine) SetConnector(connector Connector)
- func (engine *Engine) SetEnd(val string)
- func (engine *Engine) SetProcessor(processor Processor)
- func (engine *Engine) SetStart(val string, plusOne bool)
- func (engine *Engine) Status() map[string]interface{}
- type ForkWatcher
- type Processor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockEvent ¶
type Connector ¶
type Connector interface { Apply(BlockEvent) Revert(BlockEvent) }
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func (*Engine) SetConnector ¶
func (*Engine) SetProcessor ¶
type ForkWatcher ¶
type ForkWatcher struct {
// contains filtered or unexported fields
}
func NewForkWatcher ¶
func NewForkWatcher(engine *Engine, maxForkSize int) *ForkWatcher
type Processor ¶
type Processor interface { NewBlockEvent(*big.Int, string, string) BlockEvent Process(*types.Block, BlockEvent) }
Click to show internal directories.
Click to hide internal directories.