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 HeadListener
- type HeadTrackable
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
NewConfig creates a new instance of Config. It also registers the testing.TB 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 testing.TB) *HeadBroadcaster
NewHeadBroadcaster creates a new instance of HeadBroadcaster. It also registers the testing.TB 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 HeadListener ¶
HeadListener is an autogenerated mock type for the HeadListener type
func NewHeadListener ¶ added in v1.5.0
func NewHeadListener(t testing.TB) *HeadListener
NewHeadListener creates a new instance of HeadListener. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.
func (*HeadListener) Connected ¶
func (_m *HeadListener) Connected() bool
Connected provides a mock function with given fields:
func (*HeadListener) ListenForNewHeads ¶
func (_m *HeadListener) ListenForNewHeads(handleNewHead types.NewHeadHandler, done func())
ListenForNewHeads provides a mock function with given fields: handleNewHead, done
func (*HeadListener) ReceivingHeads ¶
func (_m *HeadListener) ReceivingHeads() bool
ReceivingHeads provides a mock function with given fields:
type HeadTrackable ¶
HeadTrackable is an autogenerated mock type for the HeadTrackable type
func NewHeadTrackable ¶ added in v1.5.0
func NewHeadTrackable(t testing.TB) *HeadTrackable
NewHeadTrackable creates a new instance of HeadTrackable. It also registers the testing.TB 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