Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockNotifier ¶
type BlockNotifier interface {
// NotifyEpochStarted notifies the epoch has started.
Subscribe(id string) <-chan EventNewBlock
GetCurrentBlockNumber() uint64
String() string
Start(ctx context.Context)
Initialize(ctx context.Context) error
}
BlockNotifier is the interface that wraps the basic methods to notify a new block.
type BlockNotifierManager ¶
type BlockNotifierManager interface {
GetBlockNotifier(ctx context.Context, finality aggkittypes.BlockNumberFinality) (BlockNotifier, error)
GetCurrentBlockNumber(ctx context.Context, finality aggkittypes.BlockNumberFinality) (uint64, error)
}
type EventNewBlock ¶
type EventNewBlock struct {
BlockNumber uint64
BlockFinalityType aggkittypes.BlockNumberFinality
BlockRate time.Duration
}
Click to show internal directories.
Click to hide internal directories.