Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockAuth
- type MockAuthMockRecorder
- 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)
- func (m *MockNodeForward) SpamStatistics(arg0 context.Context, arg1 string) (*v1.GetSpamStatisticsResponse, int, error)
- func (m *MockNodeForward) Stop()
- 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
- func (mr *MockNodeForwardMockRecorder) SpamStatistics(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockNodeForwardMockRecorder) Stop() *gomock.Call
- type MockRSAStore
- type MockRSAStoreMockRecorder
- type MockSpamHandler
- type MockSpamHandlerMockRecorder
- 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) 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 *v11.SubmitTransactionRequest, arg2 uint64, arg3 string) (*v10.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) 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.
func (*MockAuth) RevokeAllToken ¶
func (m *MockAuth) RevokeAllToken()
RevokeAllToken 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) RevokeAllToken ¶
func (mr *MockAuthMockRecorder) RevokeAllToken() *gomock.Call
RevokeAllToken indicates an expected call of RevokeAllToken.
func (*MockAuthMockRecorder) VerifyToken ¶
func (mr *MockAuthMockRecorder) VerifyToken(arg0 interface{}) *gomock.Call
VerifyToken indicates an expected call of VerifyToken.
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.
func (*MockNodeForward) SpamStatistics ¶ added in v0.68.0
func (m *MockNodeForward) SpamStatistics(arg0 context.Context, arg1 string) (*v1.GetSpamStatisticsResponse, int, error)
SpamStatistics 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.
func (*MockNodeForwardMockRecorder) SpamStatistics ¶ added in v0.68.0
func (mr *MockNodeForwardMockRecorder) SpamStatistics(arg0, arg1 interface{}) *gomock.Call
SpamStatistics indicates an expected call of SpamStatistics.
func (*MockNodeForwardMockRecorder) Stop ¶
func (mr *MockNodeForwardMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
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() (*v12.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 MockSpamHandler ¶ added in v0.68.0
type MockSpamHandler struct {
// contains filtered or unexported fields
}
MockSpamHandler is a mock of SpamHandler interface.
func NewMockSpamHandler ¶ added in v0.68.0
func NewMockSpamHandler(ctrl *gomock.Controller) *MockSpamHandler
NewMockSpamHandler creates a new mock instance.
func (*MockSpamHandler) CheckSubmission ¶ added in v0.68.0
func (m *MockSpamHandler) CheckSubmission(arg0 *v11.SubmitTransactionRequest, arg1 *types.SpamStatistics) error
CheckSubmission mocks base method.
func (*MockSpamHandler) EXPECT ¶ added in v0.68.0
func (m *MockSpamHandler) EXPECT() *MockSpamHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSpamHandler) GenerateProofOfWork ¶ added in v0.68.0
func (m *MockSpamHandler) GenerateProofOfWork(arg0 string, arg1 *types.SpamStatistics) (*v10.ProofOfWork, error)
GenerateProofOfWork mocks base method.
type MockSpamHandlerMockRecorder ¶ added in v0.68.0
type MockSpamHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockSpamHandlerMockRecorder is the mock recorder for MockSpamHandler.
func (*MockSpamHandlerMockRecorder) CheckSubmission ¶ added in v0.68.0
func (mr *MockSpamHandlerMockRecorder) CheckSubmission(arg0, arg1 interface{}) *gomock.Call
CheckSubmission indicates an expected call of CheckSubmission.
func (*MockSpamHandlerMockRecorder) GenerateProofOfWork ¶ added in v0.68.0
func (mr *MockSpamHandlerMockRecorder) GenerateProofOfWork(arg0, arg1 interface{}) *gomock.Call
GenerateProofOfWork indicates an expected call of GenerateProofOfWork.
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) 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 *v11.SubmitTransactionRequest, arg2 uint64, arg3 string) (*v10.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) 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.