Documentation
¶
Overview ¶
Package mock_syncer is a generated GoMock package.
Index ¶
- type MockSyncer
- func (m *MockSyncer) EXPECT() *MockSyncerMockRecorder
- func (m *MockSyncer) GetAssetExchangeSigns(id string) ([]byte, error)
- func (m *MockSyncer) GetBitXHubIDs() ([]string, error)
- func (m *MockSyncer) GetChainID() (uint64, error)
- func (m *MockSyncer) GetIBTPSigns(ibtp *pb.IBTP) ([]byte, error)
- func (m *MockSyncer) GetServiceIDs() ([]string, error)
- func (m *MockSyncer) GetTxStatus(id string) (pb.TransactionStatus, error)
- func (m *MockSyncer) ListenIBTP() <-chan *model.WrappedIBTP
- func (m *MockSyncer) QueryIBTP(ibtpID string, isReq bool) (*pb.IBTP, bool, error)
- func (m *MockSyncer) QueryInterchainMeta(serviceID string) *pb.Interchain
- func (m *MockSyncer) RegisterRollbackHandler(handler syncer.RollbackHandler) error
- func (m *MockSyncer) SendIBTP(ibtp *pb.IBTP) error
- func (m *MockSyncer) SendIBTPWithRetry(ibtp *pb.IBTP)
- func (m *MockSyncer) Start() error
- func (m *MockSyncer) Stop() error
- type MockSyncerMockRecorder
- func (mr *MockSyncerMockRecorder) GetAssetExchangeSigns(id interface{}) *gomock.Call
- func (mr *MockSyncerMockRecorder) GetBitXHubIDs() *gomock.Call
- func (mr *MockSyncerMockRecorder) GetChainID() *gomock.Call
- func (mr *MockSyncerMockRecorder) GetIBTPSigns(ibtp interface{}) *gomock.Call
- func (mr *MockSyncerMockRecorder) GetServiceIDs() *gomock.Call
- func (mr *MockSyncerMockRecorder) GetTxStatus(id interface{}) *gomock.Call
- func (mr *MockSyncerMockRecorder) ListenIBTP() *gomock.Call
- func (mr *MockSyncerMockRecorder) QueryIBTP(ibtpID, isReq interface{}) *gomock.Call
- func (mr *MockSyncerMockRecorder) QueryInterchainMeta(serviceID interface{}) *gomock.Call
- func (mr *MockSyncerMockRecorder) RegisterRollbackHandler(handler interface{}) *gomock.Call
- func (mr *MockSyncerMockRecorder) SendIBTP(ibtp interface{}) *gomock.Call
- func (mr *MockSyncerMockRecorder) SendIBTPWithRetry(ibtp interface{}) *gomock.Call
- func (mr *MockSyncerMockRecorder) Start() *gomock.Call
- func (mr *MockSyncerMockRecorder) Stop() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockSyncer ¶
type MockSyncer struct {
// contains filtered or unexported fields
}
MockSyncer is a mock of Syncer interface.
func NewMockSyncer ¶
func NewMockSyncer(ctrl *gomock.Controller) *MockSyncer
NewMockSyncer creates a new mock instance.
func (*MockSyncer) EXPECT ¶
func (m *MockSyncer) EXPECT() *MockSyncerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSyncer) GetAssetExchangeSigns ¶ added in v1.5.0
func (m *MockSyncer) GetAssetExchangeSigns(id string) ([]byte, error)
GetAssetExchangeSigns mocks base method.
func (*MockSyncer) GetBitXHubIDs ¶ added in v1.13.0
func (m *MockSyncer) GetBitXHubIDs() ([]string, error)
GetBitXHubIDs mocks base method.
func (*MockSyncer) GetChainID ¶ added in v1.13.0
func (m *MockSyncer) GetChainID() (uint64, error)
GetChainID mocks base method.
func (*MockSyncer) GetIBTPSigns ¶ added in v1.5.0
func (m *MockSyncer) GetIBTPSigns(ibtp *pb.IBTP) ([]byte, error)
GetIBTPSigns mocks base method.
func (*MockSyncer) GetServiceIDs ¶ added in v1.13.0
func (m *MockSyncer) GetServiceIDs() ([]string, error)
GetServiceIDs mocks base method.
func (*MockSyncer) GetTxStatus ¶ added in v1.12.0
func (m *MockSyncer) GetTxStatus(id string) (pb.TransactionStatus, error)
GetTxStatus mocks base method.
func (*MockSyncer) ListenIBTP ¶ added in v1.5.0
func (m *MockSyncer) ListenIBTP() <-chan *model.WrappedIBTP
ListenIBTP mocks base method.
func (*MockSyncer) QueryInterchainMeta ¶ added in v1.5.0
func (m *MockSyncer) QueryInterchainMeta(serviceID string) *pb.Interchain
QueryInterchainMeta mocks base method.
func (*MockSyncer) RegisterRollbackHandler ¶ added in v1.6.1
func (m *MockSyncer) RegisterRollbackHandler(handler syncer.RollbackHandler) error
RegisterRollbackHandler mocks base method.
func (*MockSyncer) SendIBTP ¶ added in v1.5.0
func (m *MockSyncer) SendIBTP(ibtp *pb.IBTP) error
SendIBTP mocks base method.
func (*MockSyncer) SendIBTPWithRetry ¶ added in v1.13.0
func (m *MockSyncer) SendIBTPWithRetry(ibtp *pb.IBTP)
SendIBTPWithRetry mocks base method.
type MockSyncerMockRecorder ¶
type MockSyncerMockRecorder struct {
// contains filtered or unexported fields
}
MockSyncerMockRecorder is the mock recorder for MockSyncer.
func (*MockSyncerMockRecorder) GetAssetExchangeSigns ¶ added in v1.5.0
func (mr *MockSyncerMockRecorder) GetAssetExchangeSigns(id interface{}) *gomock.Call
GetAssetExchangeSigns indicates an expected call of GetAssetExchangeSigns.
func (*MockSyncerMockRecorder) GetBitXHubIDs ¶ added in v1.13.0
func (mr *MockSyncerMockRecorder) GetBitXHubIDs() *gomock.Call
GetBitXHubIDs indicates an expected call of GetBitXHubIDs.
func (*MockSyncerMockRecorder) GetChainID ¶ added in v1.13.0
func (mr *MockSyncerMockRecorder) GetChainID() *gomock.Call
GetChainID indicates an expected call of GetChainID.
func (*MockSyncerMockRecorder) GetIBTPSigns ¶ added in v1.5.0
func (mr *MockSyncerMockRecorder) GetIBTPSigns(ibtp interface{}) *gomock.Call
GetIBTPSigns indicates an expected call of GetIBTPSigns.
func (*MockSyncerMockRecorder) GetServiceIDs ¶ added in v1.13.0
func (mr *MockSyncerMockRecorder) GetServiceIDs() *gomock.Call
GetServiceIDs indicates an expected call of GetServiceIDs.
func (*MockSyncerMockRecorder) GetTxStatus ¶ added in v1.12.0
func (mr *MockSyncerMockRecorder) GetTxStatus(id interface{}) *gomock.Call
GetTxStatus indicates an expected call of GetTxStatus.
func (*MockSyncerMockRecorder) ListenIBTP ¶ added in v1.5.0
func (mr *MockSyncerMockRecorder) ListenIBTP() *gomock.Call
ListenIBTP indicates an expected call of ListenIBTP.
func (*MockSyncerMockRecorder) QueryIBTP ¶ added in v1.5.0
func (mr *MockSyncerMockRecorder) QueryIBTP(ibtpID, isReq interface{}) *gomock.Call
QueryIBTP indicates an expected call of QueryIBTP.
func (*MockSyncerMockRecorder) QueryInterchainMeta ¶ added in v1.5.0
func (mr *MockSyncerMockRecorder) QueryInterchainMeta(serviceID interface{}) *gomock.Call
QueryInterchainMeta indicates an expected call of QueryInterchainMeta.
func (*MockSyncerMockRecorder) RegisterRollbackHandler ¶ added in v1.6.1
func (mr *MockSyncerMockRecorder) RegisterRollbackHandler(handler interface{}) *gomock.Call
RegisterRollbackHandler indicates an expected call of RegisterRollbackHandler.
func (*MockSyncerMockRecorder) SendIBTP ¶ added in v1.5.0
func (mr *MockSyncerMockRecorder) SendIBTP(ibtp interface{}) *gomock.Call
SendIBTP indicates an expected call of SendIBTP.
func (*MockSyncerMockRecorder) SendIBTPWithRetry ¶ added in v1.13.0
func (mr *MockSyncerMockRecorder) SendIBTPWithRetry(ibtp interface{}) *gomock.Call
SendIBTPWithRetry indicates an expected call of SendIBTPWithRetry.
func (*MockSyncerMockRecorder) Start ¶
func (mr *MockSyncerMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start.
func (*MockSyncerMockRecorder) Stop ¶
func (mr *MockSyncerMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.