Documentation
¶
Overview ¶
Package mock_client is a generated GoMock package.
Index ¶
- type MockClient
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) GetAppchainInfo(chainID string) (string, []byte, string, error)
- func (m *MockClient) GetCallbackMeta() (map[string]uint64, error)
- func (m *MockClient) GetChainID() (string, string, error)
- func (m *MockClient) GetDirectTransactionMeta(arg0 string) (uint64, uint64, uint64, error)
- func (m *MockClient) GetDstRollbackMeta() (map[string]uint64, error)
- func (m *MockClient) GetIBTPCh() chan *pb.IBTP
- func (m *MockClient) GetInMeta() (map[string]uint64, error)
- func (m *MockClient) GetOffChainData(request *pb.GetDataRequest) (*pb.GetDataResponse, error)
- func (m *MockClient) GetOffChainDataReq() chan *pb.GetDataRequest
- func (m *MockClient) GetOutMessage(servicePair string, idx uint64) (*pb.IBTP, error)
- func (m *MockClient) GetOutMeta() (map[string]uint64, error)
- func (m *MockClient) GetReceiptMessage(servicePair string, idx uint64) (*pb.IBTP, error)
- func (m *MockClient) GetServices() ([]string, error)
- func (m *MockClient) GetUpdateMeta() chan *pb.UpdateMeta
- func (m *MockClient) Initialize(configPath string, extra []byte) error
- func (m *MockClient) Name() string
- func (m *MockClient) Start() error
- func (m *MockClient) Stop() error
- func (m *MockClient) SubmitIBTP(from string, index uint64, serviceID string, ibtpType pb.IBTP_Type, ...) (*pb.SubmitIBTPResponse, error)
- func (m *MockClient) SubmitOffChainData(response *pb.GetDataResponse) error
- func (m *MockClient) SubmitReceipt(to string, index uint64, serviceID string, ibtpType pb.IBTP_Type, ...) (*pb.SubmitIBTPResponse, error)
- func (m *MockClient) Type() string
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) GetAppchainInfo(chainID interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetCallbackMeta() *gomock.Call
- func (mr *MockClientMockRecorder) GetChainID() *gomock.Call
- func (mr *MockClientMockRecorder) GetDirectTransactionMeta(arg0 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetDstRollbackMeta() *gomock.Call
- func (mr *MockClientMockRecorder) GetIBTPCh() *gomock.Call
- func (mr *MockClientMockRecorder) GetInMeta() *gomock.Call
- func (mr *MockClientMockRecorder) GetOffChainData(request interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetOffChainDataReq() *gomock.Call
- func (mr *MockClientMockRecorder) GetOutMessage(servicePair, idx interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetOutMeta() *gomock.Call
- func (mr *MockClientMockRecorder) GetReceiptMessage(servicePair, idx interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetServices() *gomock.Call
- func (mr *MockClientMockRecorder) GetUpdateMeta() *gomock.Call
- func (mr *MockClientMockRecorder) Initialize(configPath, extra interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Name() *gomock.Call
- func (mr *MockClientMockRecorder) Start() *gomock.Call
- func (mr *MockClientMockRecorder) Stop() *gomock.Call
- func (mr *MockClientMockRecorder) SubmitIBTP(from, index, serviceID, ibtpType, content, proof, isEncrypted interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) SubmitOffChainData(response interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) SubmitReceipt(to, index, serviceID, ibtpType, result, proof 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) EXPECT ¶
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClient) GetAppchainInfo ¶ added in v1.18.0
GetAppchainInfo mocks base method.
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, error)
GetChainID mocks base method.
func (*MockClient) GetDirectTransactionMeta ¶ added in v1.21.0
GetDirectTransactionMeta 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) GetIBTPCh ¶ added in v1.18.0
func (m *MockClient) GetIBTPCh() chan *pb.IBTP
GetIBTPCh mocks base method.
func (*MockClient) GetInMeta ¶
func (m *MockClient) GetInMeta() (map[string]uint64, error)
GetInMeta mocks base method.
func (*MockClient) GetOffChainData ¶ added in v1.22.0
func (m *MockClient) GetOffChainData(request *pb.GetDataRequest) (*pb.GetDataResponse, error)
GetOffChainData mocks base method.
func (*MockClient) GetOffChainDataReq ¶ added in v1.22.0
func (m *MockClient) GetOffChainDataReq() chan *pb.GetDataRequest
GetOffChainDataReq 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) GetReceiptMessage ¶ added in v1.14.0
GetReceiptMessage mocks base method.
func (*MockClient) GetServices ¶ added in v1.12.0
func (m *MockClient) GetServices() ([]string, error)
GetServices mocks base method.
func (*MockClient) GetUpdateMeta ¶ added in v1.18.0
func (m *MockClient) GetUpdateMeta() chan *pb.UpdateMeta
GetUpdateMeta mocks base method.
func (*MockClient) Initialize ¶
func (m *MockClient) Initialize(configPath string, extra []byte) error
Initialize mocks base method.
func (*MockClient) SubmitIBTP ¶
func (m *MockClient) SubmitIBTP(from string, index uint64, serviceID string, ibtpType pb.IBTP_Type, content *pb.Content, proof *pb.BxhProof, isEncrypted bool) (*pb.SubmitIBTPResponse, error)
SubmitIBTP mocks base method.
func (*MockClient) SubmitOffChainData ¶ added in v1.22.0
func (m *MockClient) SubmitOffChainData(response *pb.GetDataResponse) error
SubmitOffChainData mocks base method.
func (*MockClient) SubmitReceipt ¶ added in v1.14.0
func (m *MockClient) SubmitReceipt(to string, index uint64, serviceID string, ibtpType pb.IBTP_Type, result *pb.Result, proof *pb.BxhProof) (*pb.SubmitIBTPResponse, error)
SubmitReceipt mocks base method.
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient.
func (*MockClientMockRecorder) GetAppchainInfo ¶ added in v1.18.0
func (mr *MockClientMockRecorder) GetAppchainInfo(chainID interface{}) *gomock.Call
GetAppchainInfo indicates an expected call of GetAppchainInfo.
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) GetDirectTransactionMeta ¶ added in v1.21.0
func (mr *MockClientMockRecorder) GetDirectTransactionMeta(arg0 interface{}) *gomock.Call
GetDirectTransactionMeta indicates an expected call of GetDirectTransactionMeta.
func (*MockClientMockRecorder) GetDstRollbackMeta ¶ added in v1.12.0
func (mr *MockClientMockRecorder) GetDstRollbackMeta() *gomock.Call
GetDstRollbackMeta indicates an expected call of GetDstRollbackMeta.
func (*MockClientMockRecorder) GetIBTPCh ¶ added in v1.18.0
func (mr *MockClientMockRecorder) GetIBTPCh() *gomock.Call
GetIBTPCh indicates an expected call of GetIBTPCh.
func (*MockClientMockRecorder) GetInMeta ¶
func (mr *MockClientMockRecorder) GetInMeta() *gomock.Call
GetInMeta indicates an expected call of GetInMeta.
func (*MockClientMockRecorder) GetOffChainData ¶ added in v1.22.0
func (mr *MockClientMockRecorder) GetOffChainData(request interface{}) *gomock.Call
GetOffChainData indicates an expected call of GetOffChainData.
func (*MockClientMockRecorder) GetOffChainDataReq ¶ added in v1.22.0
func (mr *MockClientMockRecorder) GetOffChainDataReq() *gomock.Call
GetOffChainDataReq indicates an expected call of GetOffChainDataReq.
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) GetReceiptMessage ¶ added in v1.14.0
func (mr *MockClientMockRecorder) GetReceiptMessage(servicePair, idx interface{}) *gomock.Call
GetReceiptMessage indicates an expected call of GetReceiptMessage.
func (*MockClientMockRecorder) GetServices ¶ added in v1.12.0
func (mr *MockClientMockRecorder) GetServices() *gomock.Call
GetServices indicates an expected call of GetServices.
func (*MockClientMockRecorder) GetUpdateMeta ¶ added in v1.18.0
func (mr *MockClientMockRecorder) GetUpdateMeta() *gomock.Call
GetUpdateMeta indicates an expected call of GetUpdateMeta.
func (*MockClientMockRecorder) Initialize ¶
func (mr *MockClientMockRecorder) Initialize(configPath, 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) 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(from, index, serviceID, ibtpType, content, proof, isEncrypted interface{}) *gomock.Call
SubmitIBTP indicates an expected call of SubmitIBTP.
func (*MockClientMockRecorder) SubmitOffChainData ¶ added in v1.22.0
func (mr *MockClientMockRecorder) SubmitOffChainData(response interface{}) *gomock.Call
SubmitOffChainData indicates an expected call of SubmitOffChainData.
func (*MockClientMockRecorder) SubmitReceipt ¶ added in v1.14.0
func (mr *MockClientMockRecorder) SubmitReceipt(to, index, serviceID, ibtpType, result, proof interface{}) *gomock.Call
SubmitReceipt indicates an expected call of SubmitReceipt.
func (*MockClientMockRecorder) Type ¶
func (mr *MockClientMockRecorder) Type() *gomock.Call
Type indicates an expected call of Type.