Documentation ¶
Index ¶
- type Config
- type HeadBroadcaster
- func (_m *HeadBroadcaster) BroadcastNewLongestChain(head *types.Head)
- func (_m *HeadBroadcaster) Close() error
- func (_m *HeadBroadcaster) Healthy() error
- func (_m *HeadBroadcaster) Ready() error
- func (_m *HeadBroadcaster) Start(_a0 context.Context) error
- func (_m *HeadBroadcaster) Subscribe(callback headtrackertypes.HeadTrackable) (*types.Head, func())
- type HeadTrackable
- type HeadTracker
- func (_m *HeadTracker) Backfill(ctx context.Context, headWithChain *types.Head, depth uint) error
- func (_m *HeadTracker) Close() error
- func (_m *HeadTracker) Healthy() error
- func (_m *HeadTracker) LatestChain() *types.Head
- func (_m *HeadTracker) Ready() error
- func (_m *HeadTracker) Start(_a0 context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config is an autogenerated mock type for the Config type
func NewConfig ¶ added in v1.5.0
func NewConfig(t mockConstructorTestingTNewConfig) *Config
NewConfig creates a new instance of Config. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Config) BlockEmissionIdleWarningThreshold ¶
BlockEmissionIdleWarningThreshold provides a mock function with given fields:
func (*Config) EvmFinalityDepth ¶
EvmFinalityDepth provides a mock function with given fields:
func (*Config) EvmHeadTrackerHistoryDepth ¶
EvmHeadTrackerHistoryDepth provides a mock function with given fields:
func (*Config) EvmHeadTrackerMaxBufferSize ¶
EvmHeadTrackerMaxBufferSize provides a mock function with given fields:
func (*Config) EvmHeadTrackerSamplingInterval ¶
EvmHeadTrackerSamplingInterval provides a mock function with given fields:
type HeadBroadcaster ¶
HeadBroadcaster is an autogenerated mock type for the HeadBroadcaster type
func NewHeadBroadcaster ¶ added in v1.5.0
func NewHeadBroadcaster(t mockConstructorTestingTNewHeadBroadcaster) *HeadBroadcaster
NewHeadBroadcaster creates a new instance of HeadBroadcaster. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*HeadBroadcaster) BroadcastNewLongestChain ¶
func (_m *HeadBroadcaster) BroadcastNewLongestChain(head *types.Head)
BroadcastNewLongestChain provides a mock function with given fields: head
func (*HeadBroadcaster) Close ¶
func (_m *HeadBroadcaster) Close() error
Close provides a mock function with given fields:
func (*HeadBroadcaster) Healthy ¶
func (_m *HeadBroadcaster) Healthy() error
Healthy provides a mock function with given fields:
func (*HeadBroadcaster) Ready ¶
func (_m *HeadBroadcaster) Ready() error
Ready provides a mock function with given fields:
func (*HeadBroadcaster) Start ¶
func (_m *HeadBroadcaster) Start(_a0 context.Context) error
Start provides a mock function with given fields: _a0
func (*HeadBroadcaster) Subscribe ¶
func (_m *HeadBroadcaster) Subscribe(callback headtrackertypes.HeadTrackable) (*types.Head, func())
Subscribe provides a mock function with given fields: callback
type HeadTrackable ¶
HeadTrackable is an autogenerated mock type for the HeadTrackable type
func NewHeadTrackable ¶ added in v1.5.0
func NewHeadTrackable(t mockConstructorTestingTNewHeadTrackable) *HeadTrackable
NewHeadTrackable creates a new instance of HeadTrackable. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*HeadTrackable) OnNewLongestChain ¶
func (_m *HeadTrackable) OnNewLongestChain(ctx context.Context, head *types.Head)
OnNewLongestChain provides a mock function with given fields: ctx, head
type HeadTracker ¶ added in v1.11.0
HeadTracker is an autogenerated mock type for the HeadTracker type
func NewHeadTracker ¶ added in v1.11.0
func NewHeadTracker(t mockConstructorTestingTNewHeadTracker) *HeadTracker
NewHeadTracker creates a new instance of HeadTracker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*HeadTracker) Backfill ¶ added in v1.11.0
Backfill provides a mock function with given fields: ctx, headWithChain, depth
func (*HeadTracker) Close ¶ added in v1.11.0
func (_m *HeadTracker) Close() error
Close provides a mock function with given fields:
func (*HeadTracker) Healthy ¶ added in v1.11.0
func (_m *HeadTracker) Healthy() error
Healthy provides a mock function with given fields:
func (*HeadTracker) LatestChain ¶ added in v1.11.0
func (_m *HeadTracker) LatestChain() *types.Head
LatestChain provides a mock function with given fields:
func (*HeadTracker) Ready ¶ added in v1.11.0
func (_m *HeadTracker) Ready() error
Ready provides a mock function with given fields: