Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockHeaderWatcher ¶
BlockHeaderWatcher allows you to subscribe a basic job to a block header event.
func NewBlockHeaderWatcher ¶
func NewBlockHeaderWatcher(basic job.Basic) *BlockHeaderWatcher
NewBlockHeaderWatcher creates a new BlockHeaderWatcher.
func (*BlockHeaderWatcher) Teardown ¶
func (w *BlockHeaderWatcher) Teardown() error
func (*BlockHeaderWatcher) Unsubscribe ¶
func (w *BlockHeaderWatcher) Unsubscribe(context.Context)
type EthEventSub ¶
EthEventSub allows you to subscribe a basic job to an ethereum event.
func NewEthSub ¶
func NewEthSub(job job.Basic, contractAddr string, event string) *EthEventSub
NewEthSub creates a new EthEventSub.
func (*EthEventSub) Subscribe ¶
func (j *EthEventSub) Subscribe( ctx context.Context, ) (ethereum.Subscription, chan coretypes.Log, error)
Subscribe subscribes to an ethereum event.
func (*EthEventSub) Teardown ¶
func (j *EthEventSub) Teardown() error
func (*EthEventSub) Unsubscribe ¶
func (j *EthEventSub) Unsubscribe(_ context.Context)
Unsubscribe unsubscribes from an ethereum event.
type EthFilterSub ¶
EthFilterSub allows you to subscribe a basic job to an ethereum event.
func NewEthFilterSub ¶
func NewEthFilterSub(job job.Basic, eventFilter ethereum.FilterQuery) *EthFilterSub
NewEthFilterSub creates a new EthFilterSub eventFilter is a ethereum.FilterQuery.
func (*EthFilterSub) Subscribe ¶
func (j *EthFilterSub) Subscribe( ctx context.Context, ) (ethereum.Subscription, chan coretypes.Log, error)
Subscribe subscribes to all events based on ethereum filter query.
func (*EthFilterSub) Teardown ¶
func (j *EthFilterSub) Teardown() error
func (*EthFilterSub) Unsubscribe ¶
func (j *EthFilterSub) Unsubscribe(_ context.Context)
Unsubscribe unsubscribes from filter query.
Click to show internal directories.
Click to hide internal directories.