Documentation ¶
Overview ¶
Package chainstoragemocks is a generated GoMock package.
Index ¶
- type MockChainStorageClient
- func (m *MockChainStorageClient) EXPECT() *MockChainStorageClientMockRecorder
- func (m *MockChainStorageClient) GetBlockByTransaction(arg0 context.Context, arg1 *chainstorage.GetBlockByTransactionRequest, ...) (*chainstorage.GetBlockByTransactionResponse, error)
- func (m *MockChainStorageClient) GetBlockFile(arg0 context.Context, arg1 *chainstorage.GetBlockFileRequest, ...) (*chainstorage.GetBlockFileResponse, error)
- func (m *MockChainStorageClient) GetBlockFilesByRange(arg0 context.Context, arg1 *chainstorage.GetBlockFilesByRangeRequest, ...) (*chainstorage.GetBlockFilesByRangeResponse, error)
- func (m *MockChainStorageClient) GetChainEvents(arg0 context.Context, arg1 *chainstorage.GetChainEventsRequest, ...) (*chainstorage.GetChainEventsResponse, error)
- func (m *MockChainStorageClient) GetChainMetadata(arg0 context.Context, arg1 *chainstorage.GetChainMetadataRequest, ...) (*chainstorage.GetChainMetadataResponse, error)
- func (m *MockChainStorageClient) GetLatestBlock(arg0 context.Context, arg1 *chainstorage.GetLatestBlockRequest, ...) (*chainstorage.GetLatestBlockResponse, error)
- func (m *MockChainStorageClient) GetNativeBlock(arg0 context.Context, arg1 *chainstorage.GetNativeBlockRequest, ...) (*chainstorage.GetNativeBlockResponse, error)
- func (m *MockChainStorageClient) GetNativeBlocksByRange(arg0 context.Context, arg1 *chainstorage.GetNativeBlocksByRangeRequest, ...) (*chainstorage.GetNativeBlocksByRangeResponse, error)
- func (m *MockChainStorageClient) GetNativeTransaction(arg0 context.Context, arg1 *chainstorage.GetNativeTransactionRequest, ...) (*chainstorage.GetNativeTransactionResponse, error)
- func (m *MockChainStorageClient) GetRawBlock(arg0 context.Context, arg1 *chainstorage.GetRawBlockRequest, ...) (*chainstorage.GetRawBlockResponse, error)
- func (m *MockChainStorageClient) GetRawBlocksByRange(arg0 context.Context, arg1 *chainstorage.GetRawBlocksByRangeRequest, ...) (*chainstorage.GetRawBlocksByRangeResponse, error)
- func (m *MockChainStorageClient) GetRosettaBlock(arg0 context.Context, arg1 *chainstorage.GetRosettaBlockRequest, ...) (*chainstorage.GetRosettaBlockResponse, error)
- func (m *MockChainStorageClient) GetRosettaBlocksByRange(arg0 context.Context, arg1 *chainstorage.GetRosettaBlocksByRangeRequest, ...) (*chainstorage.GetRosettaBlocksByRangeResponse, error)
- func (m *MockChainStorageClient) GetVerifiedAccountState(arg0 context.Context, arg1 *chainstorage.GetVerifiedAccountStateRequest, ...) (*chainstorage.GetVerifiedAccountStateResponse, error)
- func (m *MockChainStorageClient) GetVersionedChainEvent(arg0 context.Context, arg1 *chainstorage.GetVersionedChainEventRequest, ...) (*chainstorage.GetVersionedChainEventResponse, error)
- func (m *MockChainStorageClient) StreamChainEvents(arg0 context.Context, arg1 *chainstorage.ChainEventsRequest, ...) (chainstorage.ChainStorage_StreamChainEventsClient, error)
- type MockChainStorageClientMockRecorder
- func (mr *MockChainStorageClientMockRecorder) GetBlockByTransaction(arg0, arg1 any, arg2 ...any) *gomock.Call
- func (mr *MockChainStorageClientMockRecorder) GetBlockFile(arg0, arg1 any, arg2 ...any) *gomock.Call
- func (mr *MockChainStorageClientMockRecorder) GetBlockFilesByRange(arg0, arg1 any, arg2 ...any) *gomock.Call
- func (mr *MockChainStorageClientMockRecorder) GetChainEvents(arg0, arg1 any, arg2 ...any) *gomock.Call
- func (mr *MockChainStorageClientMockRecorder) GetChainMetadata(arg0, arg1 any, arg2 ...any) *gomock.Call
- func (mr *MockChainStorageClientMockRecorder) GetLatestBlock(arg0, arg1 any, arg2 ...any) *gomock.Call
- func (mr *MockChainStorageClientMockRecorder) GetNativeBlock(arg0, arg1 any, arg2 ...any) *gomock.Call
- func (mr *MockChainStorageClientMockRecorder) GetNativeBlocksByRange(arg0, arg1 any, arg2 ...any) *gomock.Call
- func (mr *MockChainStorageClientMockRecorder) GetNativeTransaction(arg0, arg1 any, arg2 ...any) *gomock.Call
- func (mr *MockChainStorageClientMockRecorder) GetRawBlock(arg0, arg1 any, arg2 ...any) *gomock.Call
- func (mr *MockChainStorageClientMockRecorder) GetRawBlocksByRange(arg0, arg1 any, arg2 ...any) *gomock.Call
- func (mr *MockChainStorageClientMockRecorder) GetRosettaBlock(arg0, arg1 any, arg2 ...any) *gomock.Call
- func (mr *MockChainStorageClientMockRecorder) GetRosettaBlocksByRange(arg0, arg1 any, arg2 ...any) *gomock.Call
- func (mr *MockChainStorageClientMockRecorder) GetVerifiedAccountState(arg0, arg1 any, arg2 ...any) *gomock.Call
- func (mr *MockChainStorageClientMockRecorder) GetVersionedChainEvent(arg0, arg1 any, arg2 ...any) *gomock.Call
- func (mr *MockChainStorageClientMockRecorder) StreamChainEvents(arg0, arg1 any, arg2 ...any) *gomock.Call
- type MockChainStorage_StreamChainEventsClient
- func (m *MockChainStorage_StreamChainEventsClient) CloseSend() error
- func (m *MockChainStorage_StreamChainEventsClient) Context() context.Context
- func (m *MockChainStorage_StreamChainEventsClient) EXPECT() *MockChainStorage_StreamChainEventsClientMockRecorder
- func (m *MockChainStorage_StreamChainEventsClient) Header() (metadata.MD, error)
- func (m *MockChainStorage_StreamChainEventsClient) Recv() (*chainstorage.ChainEventsResponse, error)
- func (m *MockChainStorage_StreamChainEventsClient) RecvMsg(arg0 any) error
- func (m *MockChainStorage_StreamChainEventsClient) SendMsg(arg0 any) error
- func (m *MockChainStorage_StreamChainEventsClient) Trailer() metadata.MD
- type MockChainStorage_StreamChainEventsClientMockRecorder
- func (mr *MockChainStorage_StreamChainEventsClientMockRecorder) CloseSend() *gomock.Call
- func (mr *MockChainStorage_StreamChainEventsClientMockRecorder) Context() *gomock.Call
- func (mr *MockChainStorage_StreamChainEventsClientMockRecorder) Header() *gomock.Call
- func (mr *MockChainStorage_StreamChainEventsClientMockRecorder) Recv() *gomock.Call
- func (mr *MockChainStorage_StreamChainEventsClientMockRecorder) RecvMsg(arg0 any) *gomock.Call
- func (mr *MockChainStorage_StreamChainEventsClientMockRecorder) SendMsg(arg0 any) *gomock.Call
- func (mr *MockChainStorage_StreamChainEventsClientMockRecorder) Trailer() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockChainStorageClient ¶
type MockChainStorageClient struct {
// contains filtered or unexported fields
}
MockChainStorageClient is a mock of ChainStorageClient interface.
func NewMockChainStorageClient ¶
func NewMockChainStorageClient(ctrl *gomock.Controller) *MockChainStorageClient
NewMockChainStorageClient creates a new mock instance.
func (*MockChainStorageClient) EXPECT ¶
func (m *MockChainStorageClient) EXPECT() *MockChainStorageClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockChainStorageClient) GetBlockByTransaction ¶
func (m *MockChainStorageClient) GetBlockByTransaction(arg0 context.Context, arg1 *chainstorage.GetBlockByTransactionRequest, arg2 ...grpc.CallOption) (*chainstorage.GetBlockByTransactionResponse, error)
GetBlockByTransaction mocks base method.
func (*MockChainStorageClient) GetBlockFile ¶
func (m *MockChainStorageClient) GetBlockFile(arg0 context.Context, arg1 *chainstorage.GetBlockFileRequest, arg2 ...grpc.CallOption) (*chainstorage.GetBlockFileResponse, error)
GetBlockFile mocks base method.
func (*MockChainStorageClient) GetBlockFilesByRange ¶
func (m *MockChainStorageClient) GetBlockFilesByRange(arg0 context.Context, arg1 *chainstorage.GetBlockFilesByRangeRequest, arg2 ...grpc.CallOption) (*chainstorage.GetBlockFilesByRangeResponse, error)
GetBlockFilesByRange mocks base method.
func (*MockChainStorageClient) GetChainEvents ¶
func (m *MockChainStorageClient) GetChainEvents(arg0 context.Context, arg1 *chainstorage.GetChainEventsRequest, arg2 ...grpc.CallOption) (*chainstorage.GetChainEventsResponse, error)
GetChainEvents mocks base method.
func (*MockChainStorageClient) GetChainMetadata ¶
func (m *MockChainStorageClient) GetChainMetadata(arg0 context.Context, arg1 *chainstorage.GetChainMetadataRequest, arg2 ...grpc.CallOption) (*chainstorage.GetChainMetadataResponse, error)
GetChainMetadata mocks base method.
func (*MockChainStorageClient) GetLatestBlock ¶
func (m *MockChainStorageClient) GetLatestBlock(arg0 context.Context, arg1 *chainstorage.GetLatestBlockRequest, arg2 ...grpc.CallOption) (*chainstorage.GetLatestBlockResponse, error)
GetLatestBlock mocks base method.
func (*MockChainStorageClient) GetNativeBlock ¶
func (m *MockChainStorageClient) GetNativeBlock(arg0 context.Context, arg1 *chainstorage.GetNativeBlockRequest, arg2 ...grpc.CallOption) (*chainstorage.GetNativeBlockResponse, error)
GetNativeBlock mocks base method.
func (*MockChainStorageClient) GetNativeBlocksByRange ¶
func (m *MockChainStorageClient) GetNativeBlocksByRange(arg0 context.Context, arg1 *chainstorage.GetNativeBlocksByRangeRequest, arg2 ...grpc.CallOption) (*chainstorage.GetNativeBlocksByRangeResponse, error)
GetNativeBlocksByRange mocks base method.
func (*MockChainStorageClient) GetNativeTransaction ¶
func (m *MockChainStorageClient) GetNativeTransaction(arg0 context.Context, arg1 *chainstorage.GetNativeTransactionRequest, arg2 ...grpc.CallOption) (*chainstorage.GetNativeTransactionResponse, error)
GetNativeTransaction mocks base method.
func (*MockChainStorageClient) GetRawBlock ¶
func (m *MockChainStorageClient) GetRawBlock(arg0 context.Context, arg1 *chainstorage.GetRawBlockRequest, arg2 ...grpc.CallOption) (*chainstorage.GetRawBlockResponse, error)
GetRawBlock mocks base method.
func (*MockChainStorageClient) GetRawBlocksByRange ¶
func (m *MockChainStorageClient) GetRawBlocksByRange(arg0 context.Context, arg1 *chainstorage.GetRawBlocksByRangeRequest, arg2 ...grpc.CallOption) (*chainstorage.GetRawBlocksByRangeResponse, error)
GetRawBlocksByRange mocks base method.
func (*MockChainStorageClient) GetRosettaBlock ¶
func (m *MockChainStorageClient) GetRosettaBlock(arg0 context.Context, arg1 *chainstorage.GetRosettaBlockRequest, arg2 ...grpc.CallOption) (*chainstorage.GetRosettaBlockResponse, error)
GetRosettaBlock mocks base method.
func (*MockChainStorageClient) GetRosettaBlocksByRange ¶
func (m *MockChainStorageClient) GetRosettaBlocksByRange(arg0 context.Context, arg1 *chainstorage.GetRosettaBlocksByRangeRequest, arg2 ...grpc.CallOption) (*chainstorage.GetRosettaBlocksByRangeResponse, error)
GetRosettaBlocksByRange mocks base method.
func (*MockChainStorageClient) GetVerifiedAccountState ¶
func (m *MockChainStorageClient) GetVerifiedAccountState(arg0 context.Context, arg1 *chainstorage.GetVerifiedAccountStateRequest, arg2 ...grpc.CallOption) (*chainstorage.GetVerifiedAccountStateResponse, error)
GetVerifiedAccountState mocks base method.
func (*MockChainStorageClient) GetVersionedChainEvent ¶
func (m *MockChainStorageClient) GetVersionedChainEvent(arg0 context.Context, arg1 *chainstorage.GetVersionedChainEventRequest, arg2 ...grpc.CallOption) (*chainstorage.GetVersionedChainEventResponse, error)
GetVersionedChainEvent mocks base method.
func (*MockChainStorageClient) StreamChainEvents ¶
func (m *MockChainStorageClient) StreamChainEvents(arg0 context.Context, arg1 *chainstorage.ChainEventsRequest, arg2 ...grpc.CallOption) (chainstorage.ChainStorage_StreamChainEventsClient, error)
StreamChainEvents mocks base method.
type MockChainStorageClientMockRecorder ¶
type MockChainStorageClientMockRecorder struct {
// contains filtered or unexported fields
}
MockChainStorageClientMockRecorder is the mock recorder for MockChainStorageClient.
func (*MockChainStorageClientMockRecorder) GetBlockByTransaction ¶
func (mr *MockChainStorageClientMockRecorder) GetBlockByTransaction(arg0, arg1 any, arg2 ...any) *gomock.Call
GetBlockByTransaction indicates an expected call of GetBlockByTransaction.
func (*MockChainStorageClientMockRecorder) GetBlockFile ¶
func (mr *MockChainStorageClientMockRecorder) GetBlockFile(arg0, arg1 any, arg2 ...any) *gomock.Call
GetBlockFile indicates an expected call of GetBlockFile.
func (*MockChainStorageClientMockRecorder) GetBlockFilesByRange ¶
func (mr *MockChainStorageClientMockRecorder) GetBlockFilesByRange(arg0, arg1 any, arg2 ...any) *gomock.Call
GetBlockFilesByRange indicates an expected call of GetBlockFilesByRange.
func (*MockChainStorageClientMockRecorder) GetChainEvents ¶
func (mr *MockChainStorageClientMockRecorder) GetChainEvents(arg0, arg1 any, arg2 ...any) *gomock.Call
GetChainEvents indicates an expected call of GetChainEvents.
func (*MockChainStorageClientMockRecorder) GetChainMetadata ¶
func (mr *MockChainStorageClientMockRecorder) GetChainMetadata(arg0, arg1 any, arg2 ...any) *gomock.Call
GetChainMetadata indicates an expected call of GetChainMetadata.
func (*MockChainStorageClientMockRecorder) GetLatestBlock ¶
func (mr *MockChainStorageClientMockRecorder) GetLatestBlock(arg0, arg1 any, arg2 ...any) *gomock.Call
GetLatestBlock indicates an expected call of GetLatestBlock.
func (*MockChainStorageClientMockRecorder) GetNativeBlock ¶
func (mr *MockChainStorageClientMockRecorder) GetNativeBlock(arg0, arg1 any, arg2 ...any) *gomock.Call
GetNativeBlock indicates an expected call of GetNativeBlock.
func (*MockChainStorageClientMockRecorder) GetNativeBlocksByRange ¶
func (mr *MockChainStorageClientMockRecorder) GetNativeBlocksByRange(arg0, arg1 any, arg2 ...any) *gomock.Call
GetNativeBlocksByRange indicates an expected call of GetNativeBlocksByRange.
func (*MockChainStorageClientMockRecorder) GetNativeTransaction ¶
func (mr *MockChainStorageClientMockRecorder) GetNativeTransaction(arg0, arg1 any, arg2 ...any) *gomock.Call
GetNativeTransaction indicates an expected call of GetNativeTransaction.
func (*MockChainStorageClientMockRecorder) GetRawBlock ¶
func (mr *MockChainStorageClientMockRecorder) GetRawBlock(arg0, arg1 any, arg2 ...any) *gomock.Call
GetRawBlock indicates an expected call of GetRawBlock.
func (*MockChainStorageClientMockRecorder) GetRawBlocksByRange ¶
func (mr *MockChainStorageClientMockRecorder) GetRawBlocksByRange(arg0, arg1 any, arg2 ...any) *gomock.Call
GetRawBlocksByRange indicates an expected call of GetRawBlocksByRange.
func (*MockChainStorageClientMockRecorder) GetRosettaBlock ¶
func (mr *MockChainStorageClientMockRecorder) GetRosettaBlock(arg0, arg1 any, arg2 ...any) *gomock.Call
GetRosettaBlock indicates an expected call of GetRosettaBlock.
func (*MockChainStorageClientMockRecorder) GetRosettaBlocksByRange ¶
func (mr *MockChainStorageClientMockRecorder) GetRosettaBlocksByRange(arg0, arg1 any, arg2 ...any) *gomock.Call
GetRosettaBlocksByRange indicates an expected call of GetRosettaBlocksByRange.
func (*MockChainStorageClientMockRecorder) GetVerifiedAccountState ¶
func (mr *MockChainStorageClientMockRecorder) GetVerifiedAccountState(arg0, arg1 any, arg2 ...any) *gomock.Call
GetVerifiedAccountState indicates an expected call of GetVerifiedAccountState.
func (*MockChainStorageClientMockRecorder) GetVersionedChainEvent ¶
func (mr *MockChainStorageClientMockRecorder) GetVersionedChainEvent(arg0, arg1 any, arg2 ...any) *gomock.Call
GetVersionedChainEvent indicates an expected call of GetVersionedChainEvent.
func (*MockChainStorageClientMockRecorder) StreamChainEvents ¶
func (mr *MockChainStorageClientMockRecorder) StreamChainEvents(arg0, arg1 any, arg2 ...any) *gomock.Call
StreamChainEvents indicates an expected call of StreamChainEvents.
type MockChainStorage_StreamChainEventsClient ¶
type MockChainStorage_StreamChainEventsClient struct {
// contains filtered or unexported fields
}
MockChainStorage_StreamChainEventsClient is a mock of ChainStorage_StreamChainEventsClient interface.
func NewMockChainStorage_StreamChainEventsClient ¶
func NewMockChainStorage_StreamChainEventsClient(ctrl *gomock.Controller) *MockChainStorage_StreamChainEventsClient
NewMockChainStorage_StreamChainEventsClient creates a new mock instance.
func (*MockChainStorage_StreamChainEventsClient) CloseSend ¶
func (m *MockChainStorage_StreamChainEventsClient) CloseSend() error
CloseSend mocks base method.
func (*MockChainStorage_StreamChainEventsClient) Context ¶
func (m *MockChainStorage_StreamChainEventsClient) Context() context.Context
Context mocks base method.
func (*MockChainStorage_StreamChainEventsClient) EXPECT ¶
func (m *MockChainStorage_StreamChainEventsClient) EXPECT() *MockChainStorage_StreamChainEventsClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockChainStorage_StreamChainEventsClient) Header ¶
func (m *MockChainStorage_StreamChainEventsClient) Header() (metadata.MD, error)
Header mocks base method.
func (*MockChainStorage_StreamChainEventsClient) Recv ¶
func (m *MockChainStorage_StreamChainEventsClient) Recv() (*chainstorage.ChainEventsResponse, error)
Recv mocks base method.
func (*MockChainStorage_StreamChainEventsClient) RecvMsg ¶
func (m *MockChainStorage_StreamChainEventsClient) RecvMsg(arg0 any) error
RecvMsg mocks base method.
func (*MockChainStorage_StreamChainEventsClient) SendMsg ¶
func (m *MockChainStorage_StreamChainEventsClient) SendMsg(arg0 any) error
SendMsg mocks base method.
func (*MockChainStorage_StreamChainEventsClient) Trailer ¶
func (m *MockChainStorage_StreamChainEventsClient) Trailer() metadata.MD
Trailer mocks base method.
type MockChainStorage_StreamChainEventsClientMockRecorder ¶
type MockChainStorage_StreamChainEventsClientMockRecorder struct {
// contains filtered or unexported fields
}
MockChainStorage_StreamChainEventsClientMockRecorder is the mock recorder for MockChainStorage_StreamChainEventsClient.
func (*MockChainStorage_StreamChainEventsClientMockRecorder) CloseSend ¶
func (mr *MockChainStorage_StreamChainEventsClientMockRecorder) CloseSend() *gomock.Call
CloseSend indicates an expected call of CloseSend.
func (*MockChainStorage_StreamChainEventsClientMockRecorder) Context ¶
func (mr *MockChainStorage_StreamChainEventsClientMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context.
func (*MockChainStorage_StreamChainEventsClientMockRecorder) Header ¶
func (mr *MockChainStorage_StreamChainEventsClientMockRecorder) Header() *gomock.Call
Header indicates an expected call of Header.
func (*MockChainStorage_StreamChainEventsClientMockRecorder) Recv ¶
func (mr *MockChainStorage_StreamChainEventsClientMockRecorder) Recv() *gomock.Call
Recv indicates an expected call of Recv.
func (*MockChainStorage_StreamChainEventsClientMockRecorder) RecvMsg ¶
func (mr *MockChainStorage_StreamChainEventsClientMockRecorder) RecvMsg(arg0 any) *gomock.Call
RecvMsg indicates an expected call of RecvMsg.
func (*MockChainStorage_StreamChainEventsClientMockRecorder) SendMsg ¶
func (mr *MockChainStorage_StreamChainEventsClientMockRecorder) SendMsg(arg0 any) *gomock.Call
SendMsg indicates an expected call of SendMsg.
func (*MockChainStorage_StreamChainEventsClientMockRecorder) Trailer ¶
func (mr *MockChainStorage_StreamChainEventsClientMockRecorder) Trailer() *gomock.Call
Trailer indicates an expected call of Trailer.