mocks

package
v0.73.4-preview.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

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

func (m *MockAuth) NewSession(arg0 string) (string, error)

NewSession mocks base method.

func (*MockAuth) Revoke

func (m *MockAuth) Revoke(arg0 string) (string, error)

Revoke mocks base method.

func (*MockAuth) RevokeAllToken

func (m *MockAuth) RevokeAllToken()

RevokeAllToken mocks base method.

func (*MockAuth) VerifyToken

func (m *MockAuth) VerifyToken(arg0 string) (string, error)

VerifyToken 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

CheckTx mocks base method.

func (*MockNodeForward) EXPECT

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

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.

func (*MockNodeForward) Stop

func (m *MockNodeForward) Stop()

Stop 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

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

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

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

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) SignAny

func (m *MockWalletHandler) SignAny(arg0 string, arg1 []byte, arg2 string) ([]byte, error)

SignAny 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.

func (*MockWalletHandler) VerifyAny

func (m *MockWalletHandler) VerifyAny(arg0, arg1 []byte, arg2 string) (bool, error)

VerifyAny 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL