Documentation ¶
Index ¶
- type MockStore
- func (m *MockStore[H]) Append(ctx context.Context, headers ...H) (int, error)
- func (m *MockStore[H]) Get(ctx context.Context, hash header.Hash) (H, error)
- func (m *MockStore[H]) GetByHeight(ctx context.Context, height uint64) (H, error)
- func (m *MockStore[H]) GetRangeByHeight(ctx context.Context, from, to uint64) ([]H, error)
- func (m *MockStore[H]) GetVerifiedRange(ctx context.Context, h H, to uint64) ([]H, error)
- func (m *MockStore[H]) Has(context.Context, header.Hash) (bool, error)
- func (m *MockStore[H]) HasAt(_ context.Context, height uint64) bool
- func (m *MockStore[H]) Head(context.Context) (H, error)
- func (m *MockStore[H]) Height() uint64
- func (m *MockStore[H]) Init(context.Context, H) error
- func (m *MockStore[H]) Start(context.Context) error
- func (m *MockStore[H]) Stop(context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockStore ¶
func (*MockStore[H]) GetByHeight ¶
func (*MockStore[H]) GetRangeByHeight ¶
func (*MockStore[H]) GetVerifiedRange ¶
Click to show internal directories.
Click to hide internal directories.