Help us shape the future of Go! Take the 2026 Go Developer Survey

types

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2026 License: Apache-2.0, MIT Imports: 3 Imported by: 0

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
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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