Documentation
¶
Overview ¶
Package mock_client is a generated GoMock package.
Index ¶
- type MockClient
- func (m *MockClient) CommitCallback(ibtp *pb.IBTP) error
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) GetCallbackMeta() (map[string]uint64, error)
- func (m *MockClient) GetChainID() (string, string)
- func (m *MockClient) GetDstRollbackMeta() (map[string]uint64, error)
- func (m *MockClient) GetIBTP() chan *pb.IBTP
- func (m *MockClient) GetInMessage(servicePair string, idx uint64) ([][]byte, error)
- func (m *MockClient) GetInMeta() (map[string]uint64, error)
- func (m *MockClient) GetOutMessage(servicePair string, idx uint64) (*pb.IBTP, error)
- func (m *MockClient) GetOutMeta() (map[string]uint64, error)
- func (m *MockClient) GetReceipt(ibtp *pb.IBTP) (*pb.IBTP, error)
- func (m *MockClient) GetServices() []string
- func (m *MockClient) GetSrcRollbackMeta() (map[string]uint64, error)
- func (m *MockClient) IncreaseInMeta(ibtp *pb.IBTP) (*pb.IBTP, error)
- func (m *MockClient) Initialize(configPath, pierID string, extra []byte) error
- func (m *MockClient) Name() string
- func (m *MockClient) RollbackIBTP(ibtp *pb.IBTP, isSrcChain bool) (*pb.RollbackIBTPResponse, error)
- func (m *MockClient) Start() error
- func (m *MockClient) Stop() error
- func (m *MockClient) SubmitIBTP(arg0 *pb.IBTP) (*pb.SubmitIBTPResponse, error)
- func (m *MockClient) Type() string
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) CommitCallback(ibtp interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetCallbackMeta() *gomock.Call
- func (mr *MockClientMockRecorder) GetChainID() *gomock.Call
- func (mr *MockClientMockRecorder) GetDstRollbackMeta() *gomock.Call
- func (mr *MockClientMockRecorder) GetIBTP() *gomock.Call
- func (mr *MockClientMockRecorder) GetInMessage(servicePair, idx interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetInMeta() *gomock.Call
- func (mr *MockClientMockRecorder) GetOutMessage(servicePair, idx interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetOutMeta() *gomock.Call
- func (mr *MockClientMockRecorder) GetReceipt(ibtp interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetServices() *gomock.Call
- func (mr *MockClientMockRecorder) GetSrcRollbackMeta() *gomock.Call
- func (mr *MockClientMockRecorder) IncreaseInMeta(ibtp interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Initialize(configPath, pierID, extra interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Name() *gomock.Call
- func (mr *MockClientMockRecorder) RollbackIBTP(ibtp, isSrcChain interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Start() *gomock.Call
- func (mr *MockClientMockRecorder) Stop() *gomock.Call
- func (mr *MockClientMockRecorder) SubmitIBTP(arg0 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Type() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
MockClient is a mock of Client interface.
func NewMockClient ¶
func NewMockClient(ctrl *gomock.Controller) *MockClient
NewMockClient creates a new mock instance.
func (*MockClient) CommitCallback ¶
func (m *MockClient) CommitCallback(ibtp *pb.IBTP) error
CommitCallback mocks base method.
func (*MockClient) EXPECT ¶
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClient) GetCallbackMeta ¶
func (m *MockClient) GetCallbackMeta() (map[string]uint64, error)
GetCallbackMeta mocks base method.
func (*MockClient) GetChainID ¶ added in v1.12.0
func (m *MockClient) GetChainID() (string, string)
GetChainID mocks base method.
func (*MockClient) GetDstRollbackMeta ¶ added in v1.12.0
func (m *MockClient) GetDstRollbackMeta() (map[string]uint64, error)
GetDstRollbackMeta mocks base method.
func (*MockClient) GetIBTP ¶
func (m *MockClient) GetIBTP() chan *pb.IBTP
GetIBTP mocks base method.
func (*MockClient) GetInMessage ¶
func (m *MockClient) GetInMessage(servicePair string, idx uint64) ([][]byte, error)
GetInMessage mocks base method.
func (*MockClient) GetInMeta ¶
func (m *MockClient) GetInMeta() (map[string]uint64, error)
GetInMeta mocks base method.
func (*MockClient) GetOutMessage ¶
GetOutMessage mocks base method.
func (*MockClient) GetOutMeta ¶
func (m *MockClient) GetOutMeta() (map[string]uint64, error)
GetOutMeta mocks base method.
func (*MockClient) GetReceipt ¶ added in v1.6.0
GetReceipt mocks base method.
func (*MockClient) GetServices ¶ added in v1.12.0
func (m *MockClient) GetServices() []string
GetServices mocks base method.
func (*MockClient) GetSrcRollbackMeta ¶ added in v1.12.0
func (m *MockClient) GetSrcRollbackMeta() (map[string]uint64, error)
GetSrcRollbackMeta mocks base method.
func (*MockClient) IncreaseInMeta ¶ added in v1.6.1
IncreaseInMeta mocks base method.
func (*MockClient) Initialize ¶
func (m *MockClient) Initialize(configPath, pierID string, extra []byte) error
Initialize mocks base method.
func (*MockClient) RollbackIBTP ¶ added in v1.6.1
func (m *MockClient) RollbackIBTP(ibtp *pb.IBTP, isSrcChain bool) (*pb.RollbackIBTPResponse, error)
RollbackIBTP mocks base method.
func (*MockClient) SubmitIBTP ¶
func (m *MockClient) SubmitIBTP(arg0 *pb.IBTP) (*pb.SubmitIBTPResponse, error)
SubmitIBTP mocks base method.
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient.
func (*MockClientMockRecorder) CommitCallback ¶
func (mr *MockClientMockRecorder) CommitCallback(ibtp interface{}) *gomock.Call
CommitCallback indicates an expected call of CommitCallback.
func (*MockClientMockRecorder) GetCallbackMeta ¶
func (mr *MockClientMockRecorder) GetCallbackMeta() *gomock.Call
GetCallbackMeta indicates an expected call of GetCallbackMeta.
func (*MockClientMockRecorder) GetChainID ¶ added in v1.12.0
func (mr *MockClientMockRecorder) GetChainID() *gomock.Call
GetChainID indicates an expected call of GetChainID.
func (*MockClientMockRecorder) GetDstRollbackMeta ¶ added in v1.12.0
func (mr *MockClientMockRecorder) GetDstRollbackMeta() *gomock.Call
GetDstRollbackMeta indicates an expected call of GetDstRollbackMeta.
func (*MockClientMockRecorder) GetIBTP ¶
func (mr *MockClientMockRecorder) GetIBTP() *gomock.Call
GetIBTP indicates an expected call of GetIBTP.
func (*MockClientMockRecorder) GetInMessage ¶
func (mr *MockClientMockRecorder) GetInMessage(servicePair, idx interface{}) *gomock.Call
GetInMessage indicates an expected call of GetInMessage.
func (*MockClientMockRecorder) GetInMeta ¶
func (mr *MockClientMockRecorder) GetInMeta() *gomock.Call
GetInMeta indicates an expected call of GetInMeta.
func (*MockClientMockRecorder) GetOutMessage ¶
func (mr *MockClientMockRecorder) GetOutMessage(servicePair, idx interface{}) *gomock.Call
GetOutMessage indicates an expected call of GetOutMessage.
func (*MockClientMockRecorder) GetOutMeta ¶
func (mr *MockClientMockRecorder) GetOutMeta() *gomock.Call
GetOutMeta indicates an expected call of GetOutMeta.
func (*MockClientMockRecorder) GetReceipt ¶ added in v1.6.0
func (mr *MockClientMockRecorder) GetReceipt(ibtp interface{}) *gomock.Call
GetReceipt indicates an expected call of GetReceipt.
func (*MockClientMockRecorder) GetServices ¶ added in v1.12.0
func (mr *MockClientMockRecorder) GetServices() *gomock.Call
GetServices indicates an expected call of GetServices.
func (*MockClientMockRecorder) GetSrcRollbackMeta ¶ added in v1.12.0
func (mr *MockClientMockRecorder) GetSrcRollbackMeta() *gomock.Call
GetSrcRollbackMeta indicates an expected call of GetSrcRollbackMeta.
func (*MockClientMockRecorder) IncreaseInMeta ¶ added in v1.6.1
func (mr *MockClientMockRecorder) IncreaseInMeta(ibtp interface{}) *gomock.Call
IncreaseInMeta indicates an expected call of IncreaseInMeta.
func (*MockClientMockRecorder) Initialize ¶
func (mr *MockClientMockRecorder) Initialize(configPath, pierID, extra interface{}) *gomock.Call
Initialize indicates an expected call of Initialize.
func (*MockClientMockRecorder) Name ¶
func (mr *MockClientMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockClientMockRecorder) RollbackIBTP ¶ added in v1.6.1
func (mr *MockClientMockRecorder) RollbackIBTP(ibtp, isSrcChain interface{}) *gomock.Call
RollbackIBTP indicates an expected call of RollbackIBTP.
func (*MockClientMockRecorder) Start ¶
func (mr *MockClientMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start.
func (*MockClientMockRecorder) Stop ¶
func (mr *MockClientMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
func (*MockClientMockRecorder) SubmitIBTP ¶
func (mr *MockClientMockRecorder) SubmitIBTP(arg0 interface{}) *gomock.Call
SubmitIBTP indicates an expected call of SubmitIBTP.
func (*MockClientMockRecorder) Type ¶
func (mr *MockClientMockRecorder) Type() *gomock.Call
Type indicates an expected call of Type.