Documentation ¶
Index ¶
- type HeadTracker
- func (_m *HeadTracker[H, BLOCK_HASH]) Backfill(ctx context.Context, headWithChain H, depth uint) 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]) 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 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 mockConstructorTestingTNewHeadTracker) *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.
func (*HeadTracker[H, BLOCK_HASH]) Backfill ¶
func (_m *HeadTracker[H, BLOCK_HASH]) Backfill(ctx context.Context, headWithChain H, depth uint) error
Backfill provides a mock function with given fields: ctx, headWithChain, depth
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]) 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:
Click to show internal directories.
Click to hide internal directories.