Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockAuth
- type MockAuthMockRecorder
- type MockConsentPolicy
- type MockNodeForward
- func (m *MockNodeForward) CheckTx(arg0 context.Context, arg1 *v10.Transaction, arg2 int) (*v1.CheckTransactionResponse, error)
- func (m *MockNodeForward) EXPECT() *MockNodeForwardMockRecorder
- func (m *MockNodeForward) HealthCheck(arg0 context.Context) error
- func (m *MockNodeForward) LastBlockHeightAndHash(arg0 context.Context) (*v1.LastBlockHeightResponse, int, error)
- func (m *MockNodeForward) SendTx(arg0 context.Context, arg1 *v10.Transaction, ...) (*v1.SubmitTransactionResponse, error)
- type MockNodeForwardMockRecorder
- func (mr *MockNodeForwardMockRecorder) CheckTx(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockNodeForwardMockRecorder) HealthCheck(arg0 interface{}) *gomock.Call
- func (mr *MockNodeForwardMockRecorder) LastBlockHeightAndHash(arg0 interface{}) *gomock.Call
- func (mr *MockNodeForwardMockRecorder) SendTx(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- type MockRSAStore
- type MockRSAStoreMockRecorder
- type MockStore
- type MockStoreMockRecorder
- type MockWalletHandler
- func (m *MockWalletHandler) CreateWallet(arg0, arg1 string) (string, error)
- func (m *MockWalletHandler) EXPECT() *MockWalletHandlerMockRecorder
- func (m *MockWalletHandler) GetPublicKey(arg0, arg1 string) (wallet.PublicKey, error)
- func (m *MockWalletHandler) ImportWallet(arg0, arg1, arg2 string, arg3 uint32) error
- func (m *MockWalletHandler) ListPublicKeys(arg0 string) ([]wallet.PublicKey, error)
- func (m *MockWalletHandler) LoginWallet(arg0, arg1 string) error
- func (m *MockWalletHandler) LogoutWallet(arg0 string)
- func (m *MockWalletHandler) SecureGenerateKeyPair(arg0, arg1 string, arg2 []wallet.Metadata) (string, error)
- func (m *MockWalletHandler) SignAny(arg0 string, arg1 []byte, arg2 string) ([]byte, error)
- func (m *MockWalletHandler) SignTx(arg0 string, arg1 *v10.SubmitTransactionRequest, arg2 uint64, arg3 string) (*v1.Transaction, error)
- func (m *MockWalletHandler) TaintKey(arg0, arg1, arg2 string) error
- func (m *MockWalletHandler) UpdateMeta(arg0, arg1, arg2 string, arg3 []wallet.Metadata) error
- func (m *MockWalletHandler) VerifyAny(arg0, arg1 []byte, arg2 string) (bool, error)
- type MockWalletHandlerMockRecorder
- func (mr *MockWalletHandlerMockRecorder) CreateWallet(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockWalletHandlerMockRecorder) GetPublicKey(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockWalletHandlerMockRecorder) ImportWallet(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockWalletHandlerMockRecorder) ListPublicKeys(arg0 interface{}) *gomock.Call
- func (mr *MockWalletHandlerMockRecorder) LoginWallet(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockWalletHandlerMockRecorder) LogoutWallet(arg0 interface{}) *gomock.Call
- func (mr *MockWalletHandlerMockRecorder) SecureGenerateKeyPair(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockWalletHandlerMockRecorder) SignAny(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockWalletHandlerMockRecorder) SignTx(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockWalletHandlerMockRecorder) TaintKey(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockWalletHandlerMockRecorder) UpdateMeta(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockWalletHandlerMockRecorder) VerifyAny(arg0, arg1, arg2 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAuth ¶
type MockAuth struct {
// contains filtered or unexported fields
}
MockAuth is a mock of Auth interface.
func NewMockAuth ¶
func NewMockAuth(ctrl *gomock.Controller) *MockAuth
NewMockAuth creates a new mock instance.
func (*MockAuth) EXPECT ¶
func (m *MockAuth) EXPECT() *MockAuthMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAuth) NewSession ¶
NewSession mocks base method.
type MockAuthMockRecorder ¶
type MockAuthMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthMockRecorder is the mock recorder for MockAuth.
func (*MockAuthMockRecorder) NewSession ¶
func (mr *MockAuthMockRecorder) NewSession(arg0 interface{}) *gomock.Call
NewSession indicates an expected call of NewSession.
func (*MockAuthMockRecorder) Revoke ¶
func (mr *MockAuthMockRecorder) Revoke(arg0 interface{}) *gomock.Call
Revoke indicates an expected call of Revoke.
func (*MockAuthMockRecorder) VerifyToken ¶
func (mr *MockAuthMockRecorder) VerifyToken(arg0 interface{}) *gomock.Call
VerifyToken indicates an expected call of VerifyToken.
type MockConsentPolicy ¶
type MockConsentPolicy struct {
// contains filtered or unexported fields
}
func NewMockConsentPolicy ¶
func NewMockConsentPolicy(pending chan service.ConsentRequest, sentTxs chan service.SentTransaction) *MockConsentPolicy
func (*MockConsentPolicy) Ask ¶
func (p *MockConsentPolicy) Ask(tx *v1.SubmitTransactionRequest, txID string, receivedAt time.Time) (bool, error)
func (*MockConsentPolicy) Report ¶
func (p *MockConsentPolicy) Report(tx service.SentTransaction)
type MockNodeForward ¶
type MockNodeForward struct {
// contains filtered or unexported fields
}
MockNodeForward is a mock of NodeForward interface.
func NewMockNodeForward ¶
func NewMockNodeForward(ctrl *gomock.Controller) *MockNodeForward
NewMockNodeForward creates a new mock instance.
func (*MockNodeForward) CheckTx ¶
func (m *MockNodeForward) CheckTx(arg0 context.Context, arg1 *v10.Transaction, arg2 int) (*v1.CheckTransactionResponse, error)
CheckTx mocks base method.
func (*MockNodeForward) EXPECT ¶
func (m *MockNodeForward) EXPECT() *MockNodeForwardMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockNodeForward) HealthCheck ¶
func (m *MockNodeForward) HealthCheck(arg0 context.Context) error
HealthCheck mocks base method.
func (*MockNodeForward) LastBlockHeightAndHash ¶
func (m *MockNodeForward) LastBlockHeightAndHash(arg0 context.Context) (*v1.LastBlockHeightResponse, int, error)
LastBlockHeightAndHash mocks base method.
func (*MockNodeForward) SendTx ¶
func (m *MockNodeForward) SendTx(arg0 context.Context, arg1 *v10.Transaction, arg2 v1.SubmitTransactionRequest_Type, arg3 int) (*v1.SubmitTransactionResponse, error)
SendTx mocks base method.
type MockNodeForwardMockRecorder ¶
type MockNodeForwardMockRecorder struct {
// contains filtered or unexported fields
}
MockNodeForwardMockRecorder is the mock recorder for MockNodeForward.
func (*MockNodeForwardMockRecorder) CheckTx ¶
func (mr *MockNodeForwardMockRecorder) CheckTx(arg0, arg1, arg2 interface{}) *gomock.Call
CheckTx indicates an expected call of CheckTx.
func (*MockNodeForwardMockRecorder) HealthCheck ¶
func (mr *MockNodeForwardMockRecorder) HealthCheck(arg0 interface{}) *gomock.Call
HealthCheck indicates an expected call of HealthCheck.
func (*MockNodeForwardMockRecorder) LastBlockHeightAndHash ¶
func (mr *MockNodeForwardMockRecorder) LastBlockHeightAndHash(arg0 interface{}) *gomock.Call
LastBlockHeightAndHash indicates an expected call of LastBlockHeightAndHash.
func (*MockNodeForwardMockRecorder) SendTx ¶
func (mr *MockNodeForwardMockRecorder) SendTx(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
SendTx indicates an expected call of SendTx.
type MockRSAStore ¶
type MockRSAStore struct {
// contains filtered or unexported fields
}
MockRSAStore is a mock of RSAStore interface.
func NewMockRSAStore ¶
func NewMockRSAStore(ctrl *gomock.Controller) *MockRSAStore
NewMockRSAStore creates a new mock instance.
func (*MockRSAStore) EXPECT ¶
func (m *MockRSAStore) EXPECT() *MockRSAStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRSAStore) GetRsaKeys ¶
func (m *MockRSAStore) GetRsaKeys() (*service.RSAKeys, error)
GetRsaKeys mocks base method.
type MockRSAStoreMockRecorder ¶
type MockRSAStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockRSAStoreMockRecorder is the mock recorder for MockRSAStore.
func (*MockRSAStoreMockRecorder) GetRsaKeys ¶
func (mr *MockRSAStoreMockRecorder) GetRsaKeys() *gomock.Call
GetRsaKeys indicates an expected call of GetRsaKeys.
type MockStore ¶
type MockStore struct {
// contains filtered or unexported fields
}
MockStore is a mock of Store interface.
func NewMockStore ¶
func NewMockStore(ctrl *gomock.Controller) *MockStore
NewMockStore creates a new mock instance.
func (*MockStore) EXPECT ¶
func (m *MockStore) EXPECT() *MockStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStore) RSAKeysExists ¶
RSAKeysExists mocks base method.
type MockStoreMockRecorder ¶
type MockStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockStoreMockRecorder is the mock recorder for MockStore.
func (*MockStoreMockRecorder) RSAKeysExists ¶
func (mr *MockStoreMockRecorder) RSAKeysExists() *gomock.Call
RSAKeysExists indicates an expected call of RSAKeysExists.
func (*MockStoreMockRecorder) SaveRSAKeys ¶
func (mr *MockStoreMockRecorder) SaveRSAKeys(arg0 interface{}) *gomock.Call
SaveRSAKeys indicates an expected call of SaveRSAKeys.
type MockWalletHandler ¶
type MockWalletHandler struct {
// contains filtered or unexported fields
}
MockWalletHandler is a mock of WalletHandler interface.
func NewMockWalletHandler ¶
func NewMockWalletHandler(ctrl *gomock.Controller) *MockWalletHandler
NewMockWalletHandler creates a new mock instance.
func (*MockWalletHandler) CreateWallet ¶
func (m *MockWalletHandler) CreateWallet(arg0, arg1 string) (string, error)
CreateWallet mocks base method.
func (*MockWalletHandler) EXPECT ¶
func (m *MockWalletHandler) EXPECT() *MockWalletHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockWalletHandler) GetPublicKey ¶
func (m *MockWalletHandler) GetPublicKey(arg0, arg1 string) (wallet.PublicKey, error)
GetPublicKey mocks base method.
func (*MockWalletHandler) ImportWallet ¶
func (m *MockWalletHandler) ImportWallet(arg0, arg1, arg2 string, arg3 uint32) error
ImportWallet mocks base method.
func (*MockWalletHandler) ListPublicKeys ¶
func (m *MockWalletHandler) ListPublicKeys(arg0 string) ([]wallet.PublicKey, error)
ListPublicKeys mocks base method.
func (*MockWalletHandler) LoginWallet ¶
func (m *MockWalletHandler) LoginWallet(arg0, arg1 string) error
LoginWallet mocks base method.
func (*MockWalletHandler) LogoutWallet ¶
func (m *MockWalletHandler) LogoutWallet(arg0 string)
LogoutWallet mocks base method.
func (*MockWalletHandler) SecureGenerateKeyPair ¶
func (m *MockWalletHandler) SecureGenerateKeyPair(arg0, arg1 string, arg2 []wallet.Metadata) (string, error)
SecureGenerateKeyPair mocks base method.
func (*MockWalletHandler) SignTx ¶
func (m *MockWalletHandler) SignTx(arg0 string, arg1 *v10.SubmitTransactionRequest, arg2 uint64, arg3 string) (*v1.Transaction, error)
SignTx mocks base method.
func (*MockWalletHandler) TaintKey ¶
func (m *MockWalletHandler) TaintKey(arg0, arg1, arg2 string) error
TaintKey mocks base method.
func (*MockWalletHandler) UpdateMeta ¶
func (m *MockWalletHandler) UpdateMeta(arg0, arg1, arg2 string, arg3 []wallet.Metadata) error
UpdateMeta mocks base method.
type MockWalletHandlerMockRecorder ¶
type MockWalletHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockWalletHandlerMockRecorder is the mock recorder for MockWalletHandler.
func (*MockWalletHandlerMockRecorder) CreateWallet ¶
func (mr *MockWalletHandlerMockRecorder) CreateWallet(arg0, arg1 interface{}) *gomock.Call
CreateWallet indicates an expected call of CreateWallet.
func (*MockWalletHandlerMockRecorder) GetPublicKey ¶
func (mr *MockWalletHandlerMockRecorder) GetPublicKey(arg0, arg1 interface{}) *gomock.Call
GetPublicKey indicates an expected call of GetPublicKey.
func (*MockWalletHandlerMockRecorder) ImportWallet ¶
func (mr *MockWalletHandlerMockRecorder) ImportWallet(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
ImportWallet indicates an expected call of ImportWallet.
func (*MockWalletHandlerMockRecorder) ListPublicKeys ¶
func (mr *MockWalletHandlerMockRecorder) ListPublicKeys(arg0 interface{}) *gomock.Call
ListPublicKeys indicates an expected call of ListPublicKeys.
func (*MockWalletHandlerMockRecorder) LoginWallet ¶
func (mr *MockWalletHandlerMockRecorder) LoginWallet(arg0, arg1 interface{}) *gomock.Call
LoginWallet indicates an expected call of LoginWallet.
func (*MockWalletHandlerMockRecorder) LogoutWallet ¶
func (mr *MockWalletHandlerMockRecorder) LogoutWallet(arg0 interface{}) *gomock.Call
LogoutWallet indicates an expected call of LogoutWallet.
func (*MockWalletHandlerMockRecorder) SecureGenerateKeyPair ¶
func (mr *MockWalletHandlerMockRecorder) SecureGenerateKeyPair(arg0, arg1, arg2 interface{}) *gomock.Call
SecureGenerateKeyPair indicates an expected call of SecureGenerateKeyPair.
func (*MockWalletHandlerMockRecorder) SignAny ¶
func (mr *MockWalletHandlerMockRecorder) SignAny(arg0, arg1, arg2 interface{}) *gomock.Call
SignAny indicates an expected call of SignAny.
func (*MockWalletHandlerMockRecorder) SignTx ¶
func (mr *MockWalletHandlerMockRecorder) SignTx(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
SignTx indicates an expected call of SignTx.
func (*MockWalletHandlerMockRecorder) TaintKey ¶
func (mr *MockWalletHandlerMockRecorder) TaintKey(arg0, arg1, arg2 interface{}) *gomock.Call
TaintKey indicates an expected call of TaintKey.
func (*MockWalletHandlerMockRecorder) UpdateMeta ¶
func (mr *MockWalletHandlerMockRecorder) UpdateMeta(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
UpdateMeta indicates an expected call of UpdateMeta.
func (*MockWalletHandlerMockRecorder) VerifyAny ¶
func (mr *MockWalletHandlerMockRecorder) VerifyAny(arg0, arg1, arg2 interface{}) *gomock.Call
VerifyAny indicates an expected call of VerifyAny.