Documentation ¶
Index ¶
- type BlockClient
- type SnapshotClient
- func (_m *SnapshotClient) GetChunk(ctx context.Context, peerID types.NodeID, height uint64, format uint32, ...) (*promise.Promise[*statesync.ChunkResponse], error)
- func (_m *SnapshotClient) GetLightBlock(ctx context.Context, peerID types.NodeID, height uint64) (*promise.Promise[*statesync.LightBlockResponse], error)
- func (_m *SnapshotClient) GetParams(ctx context.Context, peerID types.NodeID, height uint64) (*promise.Promise[*statesync.ParamsResponse], error)
- func (_m *SnapshotClient) GetSnapshots(ctx context.Context, peerID types.NodeID) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockClient ¶
BlockClient is an autogenerated mock type for the BlockClient type
func NewBlockClient ¶
func NewBlockClient(t interface { mock.TestingT Cleanup(func()) }) *BlockClient
NewBlockClient creates a new instance of BlockClient. 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 (*BlockClient) GetBlock ¶
func (_m *BlockClient) GetBlock(ctx context.Context, height int64, peerID types.NodeID) (*promise.Promise[*blocksync.BlockResponse], error)
GetBlock provides a mock function with given fields: ctx, height, peerID
func (*BlockClient) GetSyncStatus ¶
func (_m *BlockClient) GetSyncStatus(ctx context.Context) error
GetSyncStatus provides a mock function with given fields: ctx
type SnapshotClient ¶
SnapshotClient is an autogenerated mock type for the SnapshotClient type
func NewSnapshotClient ¶
func NewSnapshotClient(t interface { mock.TestingT Cleanup(func()) }) *SnapshotClient
NewSnapshotClient creates a new instance of SnapshotClient. 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 (*SnapshotClient) GetChunk ¶
func (_m *SnapshotClient) GetChunk(ctx context.Context, peerID types.NodeID, height uint64, format uint32, index uint32) (*promise.Promise[*statesync.ChunkResponse], error)
GetChunk provides a mock function with given fields: ctx, peerID, height, format, index
func (*SnapshotClient) GetLightBlock ¶
func (_m *SnapshotClient) GetLightBlock(ctx context.Context, peerID types.NodeID, height uint64) (*promise.Promise[*statesync.LightBlockResponse], error)
GetLightBlock provides a mock function with given fields: ctx, peerID, height
func (*SnapshotClient) GetParams ¶
func (_m *SnapshotClient) GetParams(ctx context.Context, peerID types.NodeID, height uint64) (*promise.Promise[*statesync.ParamsResponse], error)
GetParams provides a mock function with given fields: ctx, peerID, height
func (*SnapshotClient) GetSnapshots ¶
GetSnapshots provides a mock function with given fields: ctx, peerID