Documentation ¶
Index ¶
- type HeadBroadcaster
- func (_m *HeadBroadcaster[H, BLOCK_HASH]) BroadcastNewLongestChain(_a0 H)
- func (_m *HeadBroadcaster[H, BLOCK_HASH]) Close() error
- func (_m *HeadBroadcaster[H, BLOCK_HASH]) HealthReport() map[string]error
- func (_m *HeadBroadcaster[H, BLOCK_HASH]) Name() string
- func (_m *HeadBroadcaster[H, BLOCK_HASH]) Ready() error
- func (_m *HeadBroadcaster[H, BLOCK_HASH]) Start(_a0 context.Context) error
- func (_m *HeadBroadcaster[H, BLOCK_HASH]) Subscribe(callback headtracker.HeadTrackable[H, BLOCK_HASH]) (H, func())
- type HeadTrackable
- type HeadTracker
- func (_m *HeadTracker[H, BLOCK_HASH]) Backfill(ctx context.Context, headWithChain H) error
- func (_m *HeadTracker[H, BLOCK_HASH]) Close() error
- func (_m *HeadTracker[H, BLOCK_HASH]) HealthReport() map[string]error
- func (_m *HeadTracker[H, BLOCK_HASH]) LatestAndFinalizedBlock(ctx context.Context) (H, H, error)
- func (_m *HeadTracker[H, BLOCK_HASH]) LatestChain() H
- func (_m *HeadTracker[H, BLOCK_HASH]) Name() string
- func (_m *HeadTracker[H, BLOCK_HASH]) Ready() error
- func (_m *HeadTracker[H, BLOCK_HASH]) Start(_a0 context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HeadBroadcaster ¶
HeadBroadcaster is an autogenerated mock type for the HeadBroadcaster type
func NewHeadBroadcaster ¶
func NewHeadBroadcaster[H types.Head[BLOCK_HASH], BLOCK_HASH types.Hashable](t interface { mock.TestingT Cleanup(func()) }) *HeadBroadcaster[H, BLOCK_HASH]
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. The first argument is typically a *testing.T value.
func (*HeadBroadcaster[H, BLOCK_HASH]) BroadcastNewLongestChain ¶
func (_m *HeadBroadcaster[H, BLOCK_HASH]) BroadcastNewLongestChain(_a0 H)
BroadcastNewLongestChain provides a mock function with given fields: _a0
func (*HeadBroadcaster[H, BLOCK_HASH]) Close ¶
func (_m *HeadBroadcaster[H, BLOCK_HASH]) Close() error
Close provides a mock function with given fields:
func (*HeadBroadcaster[H, BLOCK_HASH]) HealthReport ¶
func (_m *HeadBroadcaster[H, BLOCK_HASH]) HealthReport() map[string]error
HealthReport provides a mock function with given fields:
func (*HeadBroadcaster[H, BLOCK_HASH]) Name ¶
func (_m *HeadBroadcaster[H, BLOCK_HASH]) Name() string
Name provides a mock function with given fields:
func (*HeadBroadcaster[H, BLOCK_HASH]) Ready ¶
func (_m *HeadBroadcaster[H, BLOCK_HASH]) Ready() error
Ready provides a mock function with given fields:
func (*HeadBroadcaster[H, BLOCK_HASH]) Start ¶
func (_m *HeadBroadcaster[H, BLOCK_HASH]) Start(_a0 context.Context) error
Start provides a mock function with given fields: _a0
func (*HeadBroadcaster[H, BLOCK_HASH]) Subscribe ¶
func (_m *HeadBroadcaster[H, BLOCK_HASH]) Subscribe(callback headtracker.HeadTrackable[H, BLOCK_HASH]) (H, func())
Subscribe provides a mock function with given fields: callback
type HeadTrackable ¶
HeadTrackable is an autogenerated mock type for the HeadTrackable type
func NewHeadTrackable ¶
func NewHeadTrackable[H types.Head[BLOCK_HASH], BLOCK_HASH types.Hashable](t interface { mock.TestingT Cleanup(func()) }) *HeadTrackable[H, BLOCK_HASH]
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. The first argument is typically a *testing.T value.
func (*HeadTrackable[H, BLOCK_HASH]) OnNewLongestChain ¶
func (_m *HeadTrackable[H, BLOCK_HASH]) OnNewLongestChain(ctx context.Context, head H)
OnNewLongestChain provides a mock function with given fields: ctx, head
type HeadTracker ¶
HeadTracker is an autogenerated mock type for the HeadTracker type
func NewHeadTracker ¶
func NewHeadTracker[H types.Head[BLOCK_HASH], BLOCK_HASH types.Hashable](t interface { mock.TestingT Cleanup(func()) }) *HeadTracker[H, BLOCK_HASH]
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. The first argument is typically a *testing.T value.
func (*HeadTracker[H, BLOCK_HASH]) Backfill ¶
func (_m *HeadTracker[H, BLOCK_HASH]) Backfill(ctx context.Context, headWithChain H) error
Backfill provides a mock function with given fields: ctx, headWithChain
func (*HeadTracker[H, BLOCK_HASH]) Close ¶
func (_m *HeadTracker[H, BLOCK_HASH]) Close() error
Close provides a mock function with given fields:
func (*HeadTracker[H, BLOCK_HASH]) HealthReport ¶
func (_m *HeadTracker[H, BLOCK_HASH]) HealthReport() map[string]error
HealthReport provides a mock function with given fields:
func (*HeadTracker[H, BLOCK_HASH]) LatestAndFinalizedBlock ¶ added in v2.14.0
func (_m *HeadTracker[H, BLOCK_HASH]) LatestAndFinalizedBlock(ctx context.Context) (H, H, error)
LatestAndFinalizedBlock provides a mock function with given fields: ctx
func (*HeadTracker[H, BLOCK_HASH]) LatestChain ¶
func (_m *HeadTracker[H, BLOCK_HASH]) LatestChain() H
LatestChain provides a mock function with given fields:
func (*HeadTracker[H, BLOCK_HASH]) Name ¶
func (_m *HeadTracker[H, BLOCK_HASH]) Name() string
Name provides a mock function with given fields:
func (*HeadTracker[H, BLOCK_HASH]) Ready ¶
func (_m *HeadTracker[H, BLOCK_HASH]) Ready() error
Ready provides a mock function with given fields: