events

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2021 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ComponentName = "trackerEvent"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Contract

type Contract interface {
	Abi() abi.ABI
	WatchLogs(opts *bind.WatchOpts, name string, query ...[]interface{}) (chan types.Log, event.Subscription, error)
	NetID() int64
	Addr() common.Address
}

type NoopSubs

type NoopSubs struct{}

func (*NoopSubs) Err

func (self *NoopSubs) Err() <-chan error

func (*NoopSubs) Unsubscribe

func (self *NoopSubs) Unsubscribe()

type TrackerEvents

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

func New

func New(
	ctx context.Context,
	logger log.Logger,
	client *ethclient.Client,
	contract Contract,
	lookBack time.Duration,
	eventName string,
	reorgWaitPeriod time.Duration,
) (*TrackerEvents, chan types.Log, error)

func (*TrackerEvents) Start

func (self *TrackerEvents) Start() error

func (*TrackerEvents) Stop

func (self *TrackerEvents) Stop()

Jump to

Keyboard shortcuts

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