Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockCoreClient
- func (m *MockCoreClient) CheckTransaction(arg0 context.Context, arg1 *v1.CheckTransactionRequest, ...) (*v1.CheckTransactionResponse, error)
- func (m *MockCoreClient) EXPECT() *MockCoreClientMockRecorder
- func (m *MockCoreClient) GetVegaTime(arg0 context.Context, arg1 *v1.GetVegaTimeRequest, arg2 ...grpc.CallOption) (*v1.GetVegaTimeResponse, error)
- func (m *MockCoreClient) Host() string
- func (m *MockCoreClient) LastBlockHeight(arg0 context.Context, arg1 *v1.LastBlockHeightRequest, arg2 ...grpc.CallOption) (*v1.LastBlockHeightResponse, error)
- func (m *MockCoreClient) Stop() error
- func (m *MockCoreClient) SubmitTransaction(arg0 context.Context, arg1 *v1.SubmitTransactionRequest, ...) (*v1.SubmitTransactionResponse, error)
- type MockCoreClientMockRecorder
- func (mr *MockCoreClientMockRecorder) CheckTransaction(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockCoreClientMockRecorder) GetVegaTime(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockCoreClientMockRecorder) Host() *gomock.Call
- func (mr *MockCoreClientMockRecorder) LastBlockHeight(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockCoreClientMockRecorder) Stop() *gomock.Call
- func (mr *MockCoreClientMockRecorder) SubmitTransaction(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- type MockNode
- func (m *MockNode) CheckTransaction(arg0 context.Context, arg1 *v10.Transaction) (*v1.CheckTransactionResponse, error)
- func (m *MockNode) EXPECT() *MockNodeMockRecorder
- func (m *MockNode) HealthCheck(arg0 context.Context) error
- func (m *MockNode) Host() string
- func (m *MockNode) LastBlock(arg0 context.Context) (*v1.LastBlockHeightResponse, error)
- func (m *MockNode) SendTransaction(arg0 context.Context, arg1 *v10.Transaction, ...) (string, error)
- func (m *MockNode) Stop() error
- type MockNodeMockRecorder
- func (mr *MockNodeMockRecorder) CheckTransaction(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockNodeMockRecorder) HealthCheck(arg0 interface{}) *gomock.Call
- func (mr *MockNodeMockRecorder) Host() *gomock.Call
- func (mr *MockNodeMockRecorder) LastBlock(arg0 interface{}) *gomock.Call
- func (mr *MockNodeMockRecorder) SendTransaction(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockNodeMockRecorder) Stop() *gomock.Call
- type MockSelector
- type MockSelectorMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCoreClient ¶
type MockCoreClient struct {
// contains filtered or unexported fields
}
MockCoreClient is a mock of CoreClient interface.
func NewMockCoreClient ¶
func NewMockCoreClient(ctrl *gomock.Controller) *MockCoreClient
NewMockCoreClient creates a new mock instance.
func (*MockCoreClient) CheckTransaction ¶
func (m *MockCoreClient) CheckTransaction(arg0 context.Context, arg1 *v1.CheckTransactionRequest, arg2 ...grpc.CallOption) (*v1.CheckTransactionResponse, error)
CheckTransaction mocks base method.
func (*MockCoreClient) EXPECT ¶
func (m *MockCoreClient) EXPECT() *MockCoreClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCoreClient) GetVegaTime ¶
func (m *MockCoreClient) GetVegaTime(arg0 context.Context, arg1 *v1.GetVegaTimeRequest, arg2 ...grpc.CallOption) (*v1.GetVegaTimeResponse, error)
GetVegaTime mocks base method.
func (*MockCoreClient) LastBlockHeight ¶
func (m *MockCoreClient) LastBlockHeight(arg0 context.Context, arg1 *v1.LastBlockHeightRequest, arg2 ...grpc.CallOption) (*v1.LastBlockHeightResponse, error)
LastBlockHeight mocks base method.
func (*MockCoreClient) SubmitTransaction ¶
func (m *MockCoreClient) SubmitTransaction(arg0 context.Context, arg1 *v1.SubmitTransactionRequest, arg2 ...grpc.CallOption) (*v1.SubmitTransactionResponse, error)
SubmitTransaction mocks base method.
type MockCoreClientMockRecorder ¶
type MockCoreClientMockRecorder struct {
// contains filtered or unexported fields
}
MockCoreClientMockRecorder is the mock recorder for MockCoreClient.
func (*MockCoreClientMockRecorder) CheckTransaction ¶
func (mr *MockCoreClientMockRecorder) CheckTransaction(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
CheckTransaction indicates an expected call of CheckTransaction.
func (*MockCoreClientMockRecorder) GetVegaTime ¶
func (mr *MockCoreClientMockRecorder) GetVegaTime(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
GetVegaTime indicates an expected call of GetVegaTime.
func (*MockCoreClientMockRecorder) Host ¶
func (mr *MockCoreClientMockRecorder) Host() *gomock.Call
Host indicates an expected call of Host.
func (*MockCoreClientMockRecorder) LastBlockHeight ¶
func (mr *MockCoreClientMockRecorder) LastBlockHeight(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
LastBlockHeight indicates an expected call of LastBlockHeight.
func (*MockCoreClientMockRecorder) Stop ¶
func (mr *MockCoreClientMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
func (*MockCoreClientMockRecorder) SubmitTransaction ¶
func (mr *MockCoreClientMockRecorder) SubmitTransaction(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
SubmitTransaction indicates an expected call of SubmitTransaction.
type MockNode ¶ added in v0.56.0
type MockNode struct {
// contains filtered or unexported fields
}
MockNode is a mock of Node interface.
func NewMockNode ¶ added in v0.56.0
func NewMockNode(ctrl *gomock.Controller) *MockNode
NewMockNode creates a new mock instance.
func (*MockNode) CheckTransaction ¶ added in v0.56.0
func (m *MockNode) CheckTransaction(arg0 context.Context, arg1 *v10.Transaction) (*v1.CheckTransactionResponse, error)
CheckTransaction mocks base method.
func (*MockNode) EXPECT ¶ added in v0.56.0
func (m *MockNode) EXPECT() *MockNodeMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockNode) HealthCheck ¶ added in v0.56.0
HealthCheck mocks base method.
func (*MockNode) SendTransaction ¶ added in v0.56.0
func (m *MockNode) SendTransaction(arg0 context.Context, arg1 *v10.Transaction, arg2 v1.SubmitTransactionRequest_Type) (string, error)
SendTransaction mocks base method.
type MockNodeMockRecorder ¶ added in v0.56.0
type MockNodeMockRecorder struct {
// contains filtered or unexported fields
}
MockNodeMockRecorder is the mock recorder for MockNode.
func (*MockNodeMockRecorder) CheckTransaction ¶ added in v0.56.0
func (mr *MockNodeMockRecorder) CheckTransaction(arg0, arg1 interface{}) *gomock.Call
CheckTransaction indicates an expected call of CheckTransaction.
func (*MockNodeMockRecorder) HealthCheck ¶ added in v0.56.0
func (mr *MockNodeMockRecorder) HealthCheck(arg0 interface{}) *gomock.Call
HealthCheck indicates an expected call of HealthCheck.
func (*MockNodeMockRecorder) Host ¶ added in v0.56.0
func (mr *MockNodeMockRecorder) Host() *gomock.Call
Host indicates an expected call of Host.
func (*MockNodeMockRecorder) LastBlock ¶ added in v0.56.0
func (mr *MockNodeMockRecorder) LastBlock(arg0 interface{}) *gomock.Call
LastBlock indicates an expected call of LastBlock.
func (*MockNodeMockRecorder) SendTransaction ¶ added in v0.56.0
func (mr *MockNodeMockRecorder) SendTransaction(arg0, arg1, arg2 interface{}) *gomock.Call
SendTransaction indicates an expected call of SendTransaction.
func (*MockNodeMockRecorder) Stop ¶ added in v0.56.0
func (mr *MockNodeMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
type MockSelector ¶ added in v0.56.0
type MockSelector struct {
// contains filtered or unexported fields
}
MockSelector is a mock of Selector interface.
func NewMockSelector ¶ added in v0.56.0
func NewMockSelector(ctrl *gomock.Controller) *MockSelector
NewMockSelector creates a new mock instance.
func (*MockSelector) EXPECT ¶ added in v0.56.0
func (m *MockSelector) EXPECT() *MockSelectorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSelector) Node ¶ added in v0.56.0
func (m *MockSelector) Node(arg0 context.Context, arg1 node.SelectionReporter) (node.Node, error)
Node mocks base method.
type MockSelectorMockRecorder ¶ added in v0.56.0
type MockSelectorMockRecorder struct {
// contains filtered or unexported fields
}
MockSelectorMockRecorder is the mock recorder for MockSelector.
func (*MockSelectorMockRecorder) Node ¶ added in v0.56.0
func (mr *MockSelectorMockRecorder) Node(arg0, arg1 interface{}) *gomock.Call
Node indicates an expected call of Node.
func (*MockSelectorMockRecorder) Stop ¶ added in v0.56.0
func (mr *MockSelectorMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.