mocks

package
v1.19.3 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockConfig added in v1.15.0

type MockConfig struct {
	mock.Mock
}

MockConfig is an autogenerated mock type for the Config type

func NewMockConfig added in v1.15.0

func NewMockConfig(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockConfig

NewMockConfig creates a new instance of MockConfig. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockConfig) ChangeUnlockPassword added in v1.15.0

func (_mock *MockConfig) ChangeUnlockPassword(currentUnlockPassword string, newUnlockPassword string) error

ChangeUnlockPassword provides a mock function for the type MockConfig

func (*MockConfig) CheckUnlockPassword added in v1.15.0

func (_mock *MockConfig) CheckUnlockPassword(password string) bool

CheckUnlockPassword provides a mock function for the type MockConfig

func (*MockConfig) EXPECT added in v1.15.0

func (_m *MockConfig) EXPECT() *MockConfig_Expecter

func (*MockConfig) Get added in v1.15.0

func (_mock *MockConfig) Get(key string, encryptionKey string) (string, error)

Get provides a mock function for the type MockConfig

func (*MockConfig) GetCurrency added in v1.15.0

func (_mock *MockConfig) GetCurrency() string

GetCurrency provides a mock function for the type MockConfig

func (*MockConfig) GetEnv added in v1.15.0

func (_mock *MockConfig) GetEnv() *config.AppConfig

GetEnv provides a mock function for the type MockConfig

func (*MockConfig) GetJWTSecret added in v1.15.0

func (_mock *MockConfig) GetJWTSecret() string

GetJWTSecret provides a mock function for the type MockConfig

func (*MockConfig) GetMempoolUrl added in v1.18.0

func (_mock *MockConfig) GetMempoolUrl() string

GetMempoolUrl provides a mock function for the type MockConfig

func (*MockConfig) GetNetwork added in v1.17.0

func (_mock *MockConfig) GetNetwork() string

GetNetwork provides a mock function for the type MockConfig

func (*MockConfig) GetRelayUrl added in v1.15.0

func (_mock *MockConfig) GetRelayUrl() string

GetRelayUrl provides a mock function for the type MockConfig

func (*MockConfig) SaveUnlockPasswordCheck added in v1.15.0

func (_mock *MockConfig) SaveUnlockPasswordCheck(encryptionKey string) error

SaveUnlockPasswordCheck provides a mock function for the type MockConfig

func (*MockConfig) SetAutoUnlockPassword added in v1.15.0

func (_mock *MockConfig) SetAutoUnlockPassword(unlockPassword string) error

SetAutoUnlockPassword provides a mock function for the type MockConfig

func (*MockConfig) SetCurrency added in v1.15.0

func (_mock *MockConfig) SetCurrency(value string) error

SetCurrency provides a mock function for the type MockConfig

func (*MockConfig) SetIgnore added in v1.15.0

func (_mock *MockConfig) SetIgnore(key string, value string, encryptionKey string) error

SetIgnore provides a mock function for the type MockConfig

func (*MockConfig) SetUpdate added in v1.15.0

func (_mock *MockConfig) SetUpdate(key string, value string, encryptionKey string) error

SetUpdate provides a mock function for the type MockConfig

func (*MockConfig) SetupCompleted added in v1.15.0

func (_mock *MockConfig) SetupCompleted() bool

SetupCompleted provides a mock function for the type MockConfig

type MockConfig_ChangeUnlockPassword_Call added in v1.15.0

type MockConfig_ChangeUnlockPassword_Call struct {
	*mock.Call
}

MockConfig_ChangeUnlockPassword_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ChangeUnlockPassword'

func (*MockConfig_ChangeUnlockPassword_Call) Return added in v1.15.0

func (*MockConfig_ChangeUnlockPassword_Call) Run added in v1.15.0

func (_c *MockConfig_ChangeUnlockPassword_Call) Run(run func(currentUnlockPassword string, newUnlockPassword string)) *MockConfig_ChangeUnlockPassword_Call

func (*MockConfig_ChangeUnlockPassword_Call) RunAndReturn added in v1.15.0

func (_c *MockConfig_ChangeUnlockPassword_Call) RunAndReturn(run func(currentUnlockPassword string, newUnlockPassword string) error) *MockConfig_ChangeUnlockPassword_Call

type MockConfig_CheckUnlockPassword_Call added in v1.15.0

type MockConfig_CheckUnlockPassword_Call struct {
	*mock.Call
}

MockConfig_CheckUnlockPassword_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckUnlockPassword'

func (*MockConfig_CheckUnlockPassword_Call) Return added in v1.15.0

func (*MockConfig_CheckUnlockPassword_Call) Run added in v1.15.0

func (*MockConfig_CheckUnlockPassword_Call) RunAndReturn added in v1.15.0

type MockConfig_Expecter added in v1.15.0

type MockConfig_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockConfig_Expecter) ChangeUnlockPassword added in v1.15.0

func (_e *MockConfig_Expecter) ChangeUnlockPassword(currentUnlockPassword interface{}, newUnlockPassword interface{}) *MockConfig_ChangeUnlockPassword_Call

ChangeUnlockPassword is a helper method to define mock.On call

  • currentUnlockPassword
  • newUnlockPassword

func (*MockConfig_Expecter) CheckUnlockPassword added in v1.15.0

func (_e *MockConfig_Expecter) CheckUnlockPassword(password interface{}) *MockConfig_CheckUnlockPassword_Call

CheckUnlockPassword is a helper method to define mock.On call

  • password

func (*MockConfig_Expecter) Get added in v1.15.0

func (_e *MockConfig_Expecter) Get(key interface{}, encryptionKey interface{}) *MockConfig_Get_Call

Get is a helper method to define mock.On call

  • key
  • encryptionKey

func (*MockConfig_Expecter) GetCurrency added in v1.15.0

GetCurrency is a helper method to define mock.On call

func (*MockConfig_Expecter) GetEnv added in v1.15.0

GetEnv is a helper method to define mock.On call

func (*MockConfig_Expecter) GetJWTSecret added in v1.15.0

GetJWTSecret is a helper method to define mock.On call

func (*MockConfig_Expecter) GetMempoolUrl added in v1.18.0

GetMempoolUrl is a helper method to define mock.On call

func (*MockConfig_Expecter) GetNetwork added in v1.17.0

GetNetwork is a helper method to define mock.On call

func (*MockConfig_Expecter) GetRelayUrl added in v1.15.0

GetRelayUrl is a helper method to define mock.On call

func (*MockConfig_Expecter) SaveUnlockPasswordCheck added in v1.15.0

func (_e *MockConfig_Expecter) SaveUnlockPasswordCheck(encryptionKey interface{}) *MockConfig_SaveUnlockPasswordCheck_Call

SaveUnlockPasswordCheck is a helper method to define mock.On call

  • encryptionKey

func (*MockConfig_Expecter) SetAutoUnlockPassword added in v1.15.0

func (_e *MockConfig_Expecter) SetAutoUnlockPassword(unlockPassword interface{}) *MockConfig_SetAutoUnlockPassword_Call

SetAutoUnlockPassword is a helper method to define mock.On call

  • unlockPassword

func (*MockConfig_Expecter) SetCurrency added in v1.15.0

func (_e *MockConfig_Expecter) SetCurrency(value interface{}) *MockConfig_SetCurrency_Call

SetCurrency is a helper method to define mock.On call

  • value

func (*MockConfig_Expecter) SetIgnore added in v1.15.0

func (_e *MockConfig_Expecter) SetIgnore(key interface{}, value interface{}, encryptionKey interface{}) *MockConfig_SetIgnore_Call

SetIgnore is a helper method to define mock.On call

  • key
  • value
  • encryptionKey

func (*MockConfig_Expecter) SetUpdate added in v1.15.0

func (_e *MockConfig_Expecter) SetUpdate(key interface{}, value interface{}, encryptionKey interface{}) *MockConfig_SetUpdate_Call

SetUpdate is a helper method to define mock.On call

  • key
  • value
  • encryptionKey

func (*MockConfig_Expecter) SetupCompleted added in v1.15.0

SetupCompleted is a helper method to define mock.On call

type MockConfig_GetCurrency_Call added in v1.15.0

type MockConfig_GetCurrency_Call struct {
	*mock.Call
}

MockConfig_GetCurrency_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCurrency'

func (*MockConfig_GetCurrency_Call) Return added in v1.15.0

func (*MockConfig_GetCurrency_Call) Run added in v1.15.0

func (*MockConfig_GetCurrency_Call) RunAndReturn added in v1.15.0

func (_c *MockConfig_GetCurrency_Call) RunAndReturn(run func() string) *MockConfig_GetCurrency_Call

type MockConfig_GetEnv_Call added in v1.15.0

type MockConfig_GetEnv_Call struct {
	*mock.Call
}

MockConfig_GetEnv_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEnv'

func (*MockConfig_GetEnv_Call) Return added in v1.15.0

func (*MockConfig_GetEnv_Call) Run added in v1.15.0

func (_c *MockConfig_GetEnv_Call) Run(run func()) *MockConfig_GetEnv_Call

func (*MockConfig_GetEnv_Call) RunAndReturn added in v1.15.0

func (_c *MockConfig_GetEnv_Call) RunAndReturn(run func() *config.AppConfig) *MockConfig_GetEnv_Call

type MockConfig_GetJWTSecret_Call added in v1.15.0

type MockConfig_GetJWTSecret_Call struct {
	*mock.Call
}

MockConfig_GetJWTSecret_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetJWTSecret'

func (*MockConfig_GetJWTSecret_Call) Return added in v1.15.0

func (*MockConfig_GetJWTSecret_Call) Run added in v1.15.0

func (*MockConfig_GetJWTSecret_Call) RunAndReturn added in v1.15.0

type MockConfig_GetMempoolUrl_Call added in v1.18.0

type MockConfig_GetMempoolUrl_Call struct {
	*mock.Call
}

MockConfig_GetMempoolUrl_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMempoolUrl'

func (*MockConfig_GetMempoolUrl_Call) Return added in v1.18.0

func (*MockConfig_GetMempoolUrl_Call) Run added in v1.18.0

func (*MockConfig_GetMempoolUrl_Call) RunAndReturn added in v1.18.0

type MockConfig_GetNetwork_Call added in v1.17.0

type MockConfig_GetNetwork_Call struct {
	*mock.Call
}

MockConfig_GetNetwork_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNetwork'

func (*MockConfig_GetNetwork_Call) Return added in v1.17.0

func (*MockConfig_GetNetwork_Call) Run added in v1.17.0

func (*MockConfig_GetNetwork_Call) RunAndReturn added in v1.17.0

func (_c *MockConfig_GetNetwork_Call) RunAndReturn(run func() string) *MockConfig_GetNetwork_Call

type MockConfig_GetRelayUrl_Call added in v1.15.0

type MockConfig_GetRelayUrl_Call struct {
	*mock.Call
}

MockConfig_GetRelayUrl_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRelayUrl'

func (*MockConfig_GetRelayUrl_Call) Return added in v1.15.0

func (*MockConfig_GetRelayUrl_Call) Run added in v1.15.0

func (*MockConfig_GetRelayUrl_Call) RunAndReturn added in v1.15.0

func (_c *MockConfig_GetRelayUrl_Call) RunAndReturn(run func() string) *MockConfig_GetRelayUrl_Call

type MockConfig_Get_Call added in v1.15.0

type MockConfig_Get_Call struct {
	*mock.Call
}

MockConfig_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*MockConfig_Get_Call) Return added in v1.15.0

func (*MockConfig_Get_Call) Run added in v1.15.0

func (_c *MockConfig_Get_Call) Run(run func(key string, encryptionKey string)) *MockConfig_Get_Call

func (*MockConfig_Get_Call) RunAndReturn added in v1.15.0

func (_c *MockConfig_Get_Call) RunAndReturn(run func(key string, encryptionKey string) (string, error)) *MockConfig_Get_Call

type MockConfig_SaveUnlockPasswordCheck_Call added in v1.15.0

type MockConfig_SaveUnlockPasswordCheck_Call struct {
	*mock.Call
}

MockConfig_SaveUnlockPasswordCheck_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveUnlockPasswordCheck'

func (*MockConfig_SaveUnlockPasswordCheck_Call) Return added in v1.15.0

func (*MockConfig_SaveUnlockPasswordCheck_Call) Run added in v1.15.0

func (*MockConfig_SaveUnlockPasswordCheck_Call) RunAndReturn added in v1.15.0

type MockConfig_SetAutoUnlockPassword_Call added in v1.15.0

type MockConfig_SetAutoUnlockPassword_Call struct {
	*mock.Call
}

MockConfig_SetAutoUnlockPassword_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetAutoUnlockPassword'

func (*MockConfig_SetAutoUnlockPassword_Call) Return added in v1.15.0

func (*MockConfig_SetAutoUnlockPassword_Call) Run added in v1.15.0

func (*MockConfig_SetAutoUnlockPassword_Call) RunAndReturn added in v1.15.0

type MockConfig_SetCurrency_Call added in v1.15.0

type MockConfig_SetCurrency_Call struct {
	*mock.Call
}

MockConfig_SetCurrency_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCurrency'

func (*MockConfig_SetCurrency_Call) Return added in v1.15.0

func (*MockConfig_SetCurrency_Call) Run added in v1.15.0

func (*MockConfig_SetCurrency_Call) RunAndReturn added in v1.15.0

func (_c *MockConfig_SetCurrency_Call) RunAndReturn(run func(value string) error) *MockConfig_SetCurrency_Call

type MockConfig_SetIgnore_Call added in v1.15.0

type MockConfig_SetIgnore_Call struct {
	*mock.Call
}

MockConfig_SetIgnore_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetIgnore'

func (*MockConfig_SetIgnore_Call) Return added in v1.15.0

func (*MockConfig_SetIgnore_Call) Run added in v1.15.0

func (_c *MockConfig_SetIgnore_Call) Run(run func(key string, value string, encryptionKey string)) *MockConfig_SetIgnore_Call

func (*MockConfig_SetIgnore_Call) RunAndReturn added in v1.15.0

func (_c *MockConfig_SetIgnore_Call) RunAndReturn(run func(key string, value string, encryptionKey string) error) *MockConfig_SetIgnore_Call

type MockConfig_SetUpdate_Call added in v1.15.0

type MockConfig_SetUpdate_Call struct {
	*mock.Call
}

MockConfig_SetUpdate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetUpdate'

func (*MockConfig_SetUpdate_Call) Return added in v1.15.0

func (*MockConfig_SetUpdate_Call) Run added in v1.15.0

func (_c *MockConfig_SetUpdate_Call) Run(run func(key string, value string, encryptionKey string)) *MockConfig_SetUpdate_Call

func (*MockConfig_SetUpdate_Call) RunAndReturn added in v1.15.0

func (_c *MockConfig_SetUpdate_Call) RunAndReturn(run func(key string, value string, encryptionKey string) error) *MockConfig_SetUpdate_Call

type MockConfig_SetupCompleted_Call added in v1.15.0

type MockConfig_SetupCompleted_Call struct {
	*mock.Call
}

MockConfig_SetupCompleted_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetupCompleted'

func (*MockConfig_SetupCompleted_Call) Return added in v1.15.0

func (*MockConfig_SetupCompleted_Call) Run added in v1.15.0

func (*MockConfig_SetupCompleted_Call) RunAndReturn added in v1.15.0

type MockLNClient

type MockLNClient struct {
	mock.Mock
}

MockLNClient is an autogenerated mock type for the LNClient type

func NewMockLNClient

func NewMockLNClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockLNClient

NewMockLNClient creates a new instance of MockLNClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockLNClient) CancelHoldInvoice added in v1.18.0

func (_mock *MockLNClient) CancelHoldInvoice(ctx context.Context, paymentHash string) error

CancelHoldInvoice provides a mock function for the type MockLNClient

func (*MockLNClient) CloseChannel

func (_mock *MockLNClient) CloseChannel(ctx context.Context, closeChannelRequest *lnclient.CloseChannelRequest) (*lnclient.CloseChannelResponse, error)

CloseChannel provides a mock function for the type MockLNClient

func (*MockLNClient) ConnectPeer

func (_mock *MockLNClient) ConnectPeer(ctx context.Context, connectPeerRequest *lnclient.ConnectPeerRequest) error

ConnectPeer provides a mock function for the type MockLNClient

func (*MockLNClient) DisconnectPeer

func (_mock *MockLNClient) DisconnectPeer(ctx context.Context, peerId string) error

DisconnectPeer provides a mock function for the type MockLNClient

func (*MockLNClient) EXPECT

func (_m *MockLNClient) EXPECT() *MockLNClient_Expecter

func (*MockLNClient) ExecuteCustomNodeCommand

func (_mock *MockLNClient) ExecuteCustomNodeCommand(ctx context.Context, command *lnclient.CustomNodeCommandRequest) (*lnclient.CustomNodeCommandResponse, error)

ExecuteCustomNodeCommand provides a mock function for the type MockLNClient

func (*MockLNClient) GetBalances

func (_mock *MockLNClient) GetBalances(ctx context.Context, includeInactiveChannels bool) (*lnclient.BalancesResponse, error)

GetBalances provides a mock function for the type MockLNClient

func (*MockLNClient) GetCustomNodeCommandDefinitions

func (_mock *MockLNClient) GetCustomNodeCommandDefinitions() []lnclient.CustomNodeCommandDef

GetCustomNodeCommandDefinitions provides a mock function for the type MockLNClient

func (*MockLNClient) GetInfo

func (_mock *MockLNClient) GetInfo(ctx context.Context) (*lnclient.NodeInfo, error)

GetInfo provides a mock function for the type MockLNClient

func (*MockLNClient) GetLogOutput

func (_mock *MockLNClient) GetLogOutput(ctx context.Context, maxLen int) ([]byte, error)

GetLogOutput provides a mock function for the type MockLNClient

func (*MockLNClient) GetNetworkGraph

func (_mock *MockLNClient) GetNetworkGraph(ctx context.Context, nodeIds []string) (lnclient.NetworkGraphResponse, error)

GetNetworkGraph provides a mock function for the type MockLNClient

func (*MockLNClient) GetNewOnchainAddress

func (_mock *MockLNClient) GetNewOnchainAddress(ctx context.Context) (string, error)

GetNewOnchainAddress provides a mock function for the type MockLNClient

func (*MockLNClient) GetNodeConnectionInfo

func (_mock *MockLNClient) GetNodeConnectionInfo(ctx context.Context) (*lnclient.NodeConnectionInfo, error)

GetNodeConnectionInfo provides a mock function for the type MockLNClient

func (*MockLNClient) GetNodeStatus

func (_mock *MockLNClient) GetNodeStatus(ctx context.Context) (*lnclient.NodeStatus, error)

GetNodeStatus provides a mock function for the type MockLNClient

func (*MockLNClient) GetOnchainBalance

func (_mock *MockLNClient) GetOnchainBalance(ctx context.Context) (*lnclient.OnchainBalanceResponse, error)

GetOnchainBalance provides a mock function for the type MockLNClient

func (*MockLNClient) GetPubkey

func (_mock *MockLNClient) GetPubkey() string

GetPubkey provides a mock function for the type MockLNClient

func (*MockLNClient) GetStorageDir

func (_mock *MockLNClient) GetStorageDir() (string, error)

GetStorageDir provides a mock function for the type MockLNClient

func (*MockLNClient) GetSupportedNIP47Methods

func (_mock *MockLNClient) GetSupportedNIP47Methods() []string

GetSupportedNIP47Methods provides a mock function for the type MockLNClient

func (*MockLNClient) GetSupportedNIP47NotificationTypes

func (_mock *MockLNClient) GetSupportedNIP47NotificationTypes() []string

GetSupportedNIP47NotificationTypes provides a mock function for the type MockLNClient

func (*MockLNClient) ListChannels

func (_mock *MockLNClient) ListChannels(ctx context.Context) ([]lnclient.Channel, error)

ListChannels provides a mock function for the type MockLNClient

func (*MockLNClient) ListOnchainTransactions added in v1.17.0

func (_mock *MockLNClient) ListOnchainTransactions(ctx context.Context) ([]lnclient.OnchainTransaction, error)

ListOnchainTransactions provides a mock function for the type MockLNClient

func (*MockLNClient) ListPeers

func (_mock *MockLNClient) ListPeers(ctx context.Context) ([]lnclient.PeerDetails, error)

ListPeers provides a mock function for the type MockLNClient

func (*MockLNClient) ListTransactions

func (_mock *MockLNClient) ListTransactions(ctx context.Context, from uint64, until uint64, limit uint64, offset uint64, unpaid bool, invoiceType string) ([]lnclient.Transaction, error)

ListTransactions provides a mock function for the type MockLNClient

func (*MockLNClient) LookupInvoice

func (_mock *MockLNClient) LookupInvoice(ctx context.Context, paymentHash string) (*lnclient.Transaction, error)

LookupInvoice provides a mock function for the type MockLNClient

func (*MockLNClient) MakeHoldInvoice added in v1.18.0

func (_mock *MockLNClient) MakeHoldInvoice(ctx context.Context, amount int64, description string, descriptionHash string, expiry int64, paymentHash string) (*lnclient.Transaction, error)

MakeHoldInvoice provides a mock function for the type MockLNClient

func (*MockLNClient) MakeInvoice

func (_mock *MockLNClient) MakeInvoice(ctx context.Context, amount int64, description string, descriptionHash string, expiry int64) (*lnclient.Transaction, error)

MakeInvoice provides a mock function for the type MockLNClient

func (*MockLNClient) MakeOffer added in v1.18.0

func (_mock *MockLNClient) MakeOffer(ctx context.Context, description string) (string, error)

MakeOffer provides a mock function for the type MockLNClient

func (*MockLNClient) OpenChannel

func (_mock *MockLNClient) OpenChannel(ctx context.Context, openChannelRequest *lnclient.OpenChannelRequest) (*lnclient.OpenChannelResponse, error)

OpenChannel provides a mock function for the type MockLNClient

func (*MockLNClient) RedeemOnchainFunds

func (_mock *MockLNClient) RedeemOnchainFunds(ctx context.Context, toAddress string, amount uint64, feeRate *uint64, sendAll bool) (string, error)

RedeemOnchainFunds provides a mock function for the type MockLNClient

func (*MockLNClient) ResetRouter

func (_mock *MockLNClient) ResetRouter(key string) error

ResetRouter provides a mock function for the type MockLNClient

func (*MockLNClient) SendKeysend

func (_mock *MockLNClient) SendKeysend(ctx context.Context, amount uint64, destination string, customRecords []lnclient.TLVRecord, preimage string) (*lnclient.PayKeysendResponse, error)

SendKeysend provides a mock function for the type MockLNClient

func (*MockLNClient) SendPaymentProbes

func (_mock *MockLNClient) SendPaymentProbes(ctx context.Context, invoice string) error

SendPaymentProbes provides a mock function for the type MockLNClient

func (*MockLNClient) SendPaymentSync

func (_mock *MockLNClient) SendPaymentSync(ctx context.Context, payReq string, amount *uint64) (*lnclient.PayInvoiceResponse, error)

SendPaymentSync provides a mock function for the type MockLNClient

func (*MockLNClient) SendSpontaneousPaymentProbes

func (_mock *MockLNClient) SendSpontaneousPaymentProbes(ctx context.Context, amountMsat uint64, nodeId string) error

SendSpontaneousPaymentProbes provides a mock function for the type MockLNClient

func (*MockLNClient) SettleHoldInvoice added in v1.18.0

func (_mock *MockLNClient) SettleHoldInvoice(ctx context.Context, preimage string) error

SettleHoldInvoice provides a mock function for the type MockLNClient

func (*MockLNClient) Shutdown

func (_mock *MockLNClient) Shutdown() error

Shutdown provides a mock function for the type MockLNClient

func (*MockLNClient) SignMessage

func (_mock *MockLNClient) SignMessage(ctx context.Context, message string) (string, error)

SignMessage provides a mock function for the type MockLNClient

func (*MockLNClient) UpdateChannel

func (_mock *MockLNClient) UpdateChannel(ctx context.Context, updateChannelRequest *lnclient.UpdateChannelRequest) error

UpdateChannel provides a mock function for the type MockLNClient

func (*MockLNClient) UpdateLastWalletSyncRequest

func (_mock *MockLNClient) UpdateLastWalletSyncRequest()

UpdateLastWalletSyncRequest provides a mock function for the type MockLNClient

type MockLNClient_CancelHoldInvoice_Call added in v1.18.0

type MockLNClient_CancelHoldInvoice_Call struct {
	*mock.Call
}

MockLNClient_CancelHoldInvoice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CancelHoldInvoice'

func (*MockLNClient_CancelHoldInvoice_Call) Return added in v1.18.0

func (*MockLNClient_CancelHoldInvoice_Call) Run added in v1.18.0

func (*MockLNClient_CancelHoldInvoice_Call) RunAndReturn added in v1.18.0

type MockLNClient_CloseChannel_Call

type MockLNClient_CloseChannel_Call struct {
	*mock.Call
}

MockLNClient_CloseChannel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CloseChannel'

func (*MockLNClient_CloseChannel_Call) Return

func (*MockLNClient_CloseChannel_Call) Run

func (*MockLNClient_CloseChannel_Call) RunAndReturn

type MockLNClient_ConnectPeer_Call

type MockLNClient_ConnectPeer_Call struct {
	*mock.Call
}

MockLNClient_ConnectPeer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ConnectPeer'

func (*MockLNClient_ConnectPeer_Call) Return

func (*MockLNClient_ConnectPeer_Call) Run

func (*MockLNClient_ConnectPeer_Call) RunAndReturn

func (_c *MockLNClient_ConnectPeer_Call) RunAndReturn(run func(ctx context.Context, connectPeerRequest *lnclient.ConnectPeerRequest) error) *MockLNClient_ConnectPeer_Call

type MockLNClient_DisconnectPeer_Call

type MockLNClient_DisconnectPeer_Call struct {
	*mock.Call
}

MockLNClient_DisconnectPeer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DisconnectPeer'

func (*MockLNClient_DisconnectPeer_Call) Return

func (*MockLNClient_DisconnectPeer_Call) Run

func (*MockLNClient_DisconnectPeer_Call) RunAndReturn

type MockLNClient_ExecuteCustomNodeCommand_Call

type MockLNClient_ExecuteCustomNodeCommand_Call struct {
	*mock.Call
}

MockLNClient_ExecuteCustomNodeCommand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExecuteCustomNodeCommand'

func (*MockLNClient_ExecuteCustomNodeCommand_Call) Return

func (*MockLNClient_ExecuteCustomNodeCommand_Call) Run

type MockLNClient_Expecter

type MockLNClient_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockLNClient_Expecter) CancelHoldInvoice added in v1.18.0

func (_e *MockLNClient_Expecter) CancelHoldInvoice(ctx interface{}, paymentHash interface{}) *MockLNClient_CancelHoldInvoice_Call

CancelHoldInvoice is a helper method to define mock.On call

  • ctx
  • paymentHash

func (*MockLNClient_Expecter) CloseChannel

func (_e *MockLNClient_Expecter) CloseChannel(ctx interface{}, closeChannelRequest interface{}) *MockLNClient_CloseChannel_Call

CloseChannel is a helper method to define mock.On call

  • ctx
  • closeChannelRequest

func (*MockLNClient_Expecter) ConnectPeer

func (_e *MockLNClient_Expecter) ConnectPeer(ctx interface{}, connectPeerRequest interface{}) *MockLNClient_ConnectPeer_Call

ConnectPeer is a helper method to define mock.On call

  • ctx
  • connectPeerRequest

func (*MockLNClient_Expecter) DisconnectPeer

func (_e *MockLNClient_Expecter) DisconnectPeer(ctx interface{}, peerId interface{}) *MockLNClient_DisconnectPeer_Call

DisconnectPeer is a helper method to define mock.On call

  • ctx
  • peerId

func (*MockLNClient_Expecter) ExecuteCustomNodeCommand

func (_e *MockLNClient_Expecter) ExecuteCustomNodeCommand(ctx interface{}, command interface{}) *MockLNClient_ExecuteCustomNodeCommand_Call

ExecuteCustomNodeCommand is a helper method to define mock.On call

  • ctx
  • command

func (*MockLNClient_Expecter) GetBalances

func (_e *MockLNClient_Expecter) GetBalances(ctx interface{}, includeInactiveChannels interface{}) *MockLNClient_GetBalances_Call

GetBalances is a helper method to define mock.On call

  • ctx
  • includeInactiveChannels

func (*MockLNClient_Expecter) GetCustomNodeCommandDefinitions

func (_e *MockLNClient_Expecter) GetCustomNodeCommandDefinitions() *MockLNClient_GetCustomNodeCommandDefinitions_Call

GetCustomNodeCommandDefinitions is a helper method to define mock.On call

func (*MockLNClient_Expecter) GetInfo

func (_e *MockLNClient_Expecter) GetInfo(ctx interface{}) *MockLNClient_GetInfo_Call

GetInfo is a helper method to define mock.On call

  • ctx

func (*MockLNClient_Expecter) GetLogOutput

func (_e *MockLNClient_Expecter) GetLogOutput(ctx interface{}, maxLen interface{}) *MockLNClient_GetLogOutput_Call

GetLogOutput is a helper method to define mock.On call

  • ctx
  • maxLen

func (*MockLNClient_Expecter) GetNetworkGraph

func (_e *MockLNClient_Expecter) GetNetworkGraph(ctx interface{}, nodeIds interface{}) *MockLNClient_GetNetworkGraph_Call

GetNetworkGraph is a helper method to define mock.On call

  • ctx
  • nodeIds

func (*MockLNClient_Expecter) GetNewOnchainAddress

func (_e *MockLNClient_Expecter) GetNewOnchainAddress(ctx interface{}) *MockLNClient_GetNewOnchainAddress_Call

GetNewOnchainAddress is a helper method to define mock.On call

  • ctx

func (*MockLNClient_Expecter) GetNodeConnectionInfo

func (_e *MockLNClient_Expecter) GetNodeConnectionInfo(ctx interface{}) *MockLNClient_GetNodeConnectionInfo_Call

GetNodeConnectionInfo is a helper method to define mock.On call

  • ctx

func (*MockLNClient_Expecter) GetNodeStatus

func (_e *MockLNClient_Expecter) GetNodeStatus(ctx interface{}) *MockLNClient_GetNodeStatus_Call

GetNodeStatus is a helper method to define mock.On call

  • ctx

func (*MockLNClient_Expecter) GetOnchainBalance

func (_e *MockLNClient_Expecter) GetOnchainBalance(ctx interface{}) *MockLNClient_GetOnchainBalance_Call

GetOnchainBalance is a helper method to define mock.On call

  • ctx

func (*MockLNClient_Expecter) GetPubkey

GetPubkey is a helper method to define mock.On call

func (*MockLNClient_Expecter) GetStorageDir

GetStorageDir is a helper method to define mock.On call

func (*MockLNClient_Expecter) GetSupportedNIP47Methods

func (_e *MockLNClient_Expecter) GetSupportedNIP47Methods() *MockLNClient_GetSupportedNIP47Methods_Call

GetSupportedNIP47Methods is a helper method to define mock.On call

func (*MockLNClient_Expecter) GetSupportedNIP47NotificationTypes

func (_e *MockLNClient_Expecter) GetSupportedNIP47NotificationTypes() *MockLNClient_GetSupportedNIP47NotificationTypes_Call

GetSupportedNIP47NotificationTypes is a helper method to define mock.On call

func (*MockLNClient_Expecter) ListChannels

func (_e *MockLNClient_Expecter) ListChannels(ctx interface{}) *MockLNClient_ListChannels_Call

ListChannels is a helper method to define mock.On call

  • ctx

func (*MockLNClient_Expecter) ListOnchainTransactions added in v1.17.0

func (_e *MockLNClient_Expecter) ListOnchainTransactions(ctx interface{}) *MockLNClient_ListOnchainTransactions_Call

ListOnchainTransactions is a helper method to define mock.On call

  • ctx

func (*MockLNClient_Expecter) ListPeers

func (_e *MockLNClient_Expecter) ListPeers(ctx interface{}) *MockLNClient_ListPeers_Call

ListPeers is a helper method to define mock.On call

  • ctx

func (*MockLNClient_Expecter) ListTransactions

func (_e *MockLNClient_Expecter) ListTransactions(ctx interface{}, from interface{}, until interface{}, limit interface{}, offset interface{}, unpaid interface{}, invoiceType interface{}) *MockLNClient_ListTransactions_Call

ListTransactions is a helper method to define mock.On call

  • ctx
  • from
  • until
  • limit
  • offset
  • unpaid
  • invoiceType

func (*MockLNClient_Expecter) LookupInvoice

func (_e *MockLNClient_Expecter) LookupInvoice(ctx interface{}, paymentHash interface{}) *MockLNClient_LookupInvoice_Call

LookupInvoice is a helper method to define mock.On call

  • ctx
  • paymentHash

func (*MockLNClient_Expecter) MakeHoldInvoice added in v1.18.0

func (_e *MockLNClient_Expecter) MakeHoldInvoice(ctx interface{}, amount interface{}, description interface{}, descriptionHash interface{}, expiry interface{}, paymentHash interface{}) *MockLNClient_MakeHoldInvoice_Call

MakeHoldInvoice is a helper method to define mock.On call

  • ctx
  • amount
  • description
  • descriptionHash
  • expiry
  • paymentHash

func (*MockLNClient_Expecter) MakeInvoice

func (_e *MockLNClient_Expecter) MakeInvoice(ctx interface{}, amount interface{}, description interface{}, descriptionHash interface{}, expiry interface{}) *MockLNClient_MakeInvoice_Call

MakeInvoice is a helper method to define mock.On call

  • ctx
  • amount
  • description
  • descriptionHash
  • expiry

func (*MockLNClient_Expecter) MakeOffer added in v1.18.0

func (_e *MockLNClient_Expecter) MakeOffer(ctx interface{}, description interface{}) *MockLNClient_MakeOffer_Call

MakeOffer is a helper method to define mock.On call

  • ctx
  • description

func (*MockLNClient_Expecter) OpenChannel

func (_e *MockLNClient_Expecter) OpenChannel(ctx interface{}, openChannelRequest interface{}) *MockLNClient_OpenChannel_Call

OpenChannel is a helper method to define mock.On call

  • ctx
  • openChannelRequest

func (*MockLNClient_Expecter) RedeemOnchainFunds

func (_e *MockLNClient_Expecter) RedeemOnchainFunds(ctx interface{}, toAddress interface{}, amount interface{}, feeRate interface{}, sendAll interface{}) *MockLNClient_RedeemOnchainFunds_Call

RedeemOnchainFunds is a helper method to define mock.On call

  • ctx
  • toAddress
  • amount
  • feeRate
  • sendAll

func (*MockLNClient_Expecter) ResetRouter

func (_e *MockLNClient_Expecter) ResetRouter(key interface{}) *MockLNClient_ResetRouter_Call

ResetRouter is a helper method to define mock.On call

  • key

func (*MockLNClient_Expecter) SendKeysend

func (_e *MockLNClient_Expecter) SendKeysend(ctx interface{}, amount interface{}, destination interface{}, customRecords interface{}, preimage interface{}) *MockLNClient_SendKeysend_Call

SendKeysend is a helper method to define mock.On call

  • ctx
  • amount
  • destination
  • customRecords
  • preimage

func (*MockLNClient_Expecter) SendPaymentProbes

func (_e *MockLNClient_Expecter) SendPaymentProbes(ctx interface{}, invoice interface{}) *MockLNClient_SendPaymentProbes_Call

SendPaymentProbes is a helper method to define mock.On call

  • ctx
  • invoice

func (*MockLNClient_Expecter) SendPaymentSync

func (_e *MockLNClient_Expecter) SendPaymentSync(ctx interface{}, payReq interface{}, amount interface{}) *MockLNClient_SendPaymentSync_Call

SendPaymentSync is a helper method to define mock.On call

  • ctx
  • payReq
  • amount

func (*MockLNClient_Expecter) SendSpontaneousPaymentProbes

func (_e *MockLNClient_Expecter) SendSpontaneousPaymentProbes(ctx interface{}, amountMsat interface{}, nodeId interface{}) *MockLNClient_SendSpontaneousPaymentProbes_Call

SendSpontaneousPaymentProbes is a helper method to define mock.On call

  • ctx
  • amountMsat
  • nodeId

func (*MockLNClient_Expecter) SettleHoldInvoice added in v1.18.0

func (_e *MockLNClient_Expecter) SettleHoldInvoice(ctx interface{}, preimage interface{}) *MockLNClient_SettleHoldInvoice_Call

SettleHoldInvoice is a helper method to define mock.On call

  • ctx
  • preimage

func (*MockLNClient_Expecter) Shutdown

Shutdown is a helper method to define mock.On call

func (*MockLNClient_Expecter) SignMessage

func (_e *MockLNClient_Expecter) SignMessage(ctx interface{}, message interface{}) *MockLNClient_SignMessage_Call

SignMessage is a helper method to define mock.On call

  • ctx
  • message

func (*MockLNClient_Expecter) UpdateChannel

func (_e *MockLNClient_Expecter) UpdateChannel(ctx interface{}, updateChannelRequest interface{}) *MockLNClient_UpdateChannel_Call

UpdateChannel is a helper method to define mock.On call

  • ctx
  • updateChannelRequest

func (*MockLNClient_Expecter) UpdateLastWalletSyncRequest

func (_e *MockLNClient_Expecter) UpdateLastWalletSyncRequest() *MockLNClient_UpdateLastWalletSyncRequest_Call

UpdateLastWalletSyncRequest is a helper method to define mock.On call

type MockLNClient_GetBalances_Call

type MockLNClient_GetBalances_Call struct {
	*mock.Call
}

MockLNClient_GetBalances_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBalances'

func (*MockLNClient_GetBalances_Call) Return

func (*MockLNClient_GetBalances_Call) Run

func (_c *MockLNClient_GetBalances_Call) Run(run func(ctx context.Context, includeInactiveChannels bool)) *MockLNClient_GetBalances_Call

func (*MockLNClient_GetBalances_Call) RunAndReturn

func (_c *MockLNClient_GetBalances_Call) RunAndReturn(run func(ctx context.Context, includeInactiveChannels bool) (*lnclient.BalancesResponse, error)) *MockLNClient_GetBalances_Call

type MockLNClient_GetCustomNodeCommandDefinitions_Call

type MockLNClient_GetCustomNodeCommandDefinitions_Call struct {
	*mock.Call
}

MockLNClient_GetCustomNodeCommandDefinitions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCustomNodeCommandDefinitions'

func (*MockLNClient_GetCustomNodeCommandDefinitions_Call) Return

func (*MockLNClient_GetCustomNodeCommandDefinitions_Call) Run

func (*MockLNClient_GetCustomNodeCommandDefinitions_Call) RunAndReturn

type MockLNClient_GetInfo_Call

type MockLNClient_GetInfo_Call struct {
	*mock.Call
}

MockLNClient_GetInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetInfo'

func (*MockLNClient_GetInfo_Call) Return

func (*MockLNClient_GetInfo_Call) Run

func (*MockLNClient_GetInfo_Call) RunAndReturn

type MockLNClient_GetLogOutput_Call

type MockLNClient_GetLogOutput_Call struct {
	*mock.Call
}

MockLNClient_GetLogOutput_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLogOutput'

func (*MockLNClient_GetLogOutput_Call) Return

func (*MockLNClient_GetLogOutput_Call) Run

func (*MockLNClient_GetLogOutput_Call) RunAndReturn

func (_c *MockLNClient_GetLogOutput_Call) RunAndReturn(run func(ctx context.Context, maxLen int) ([]byte, error)) *MockLNClient_GetLogOutput_Call

type MockLNClient_GetNetworkGraph_Call

type MockLNClient_GetNetworkGraph_Call struct {
	*mock.Call
}

MockLNClient_GetNetworkGraph_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNetworkGraph'

func (*MockLNClient_GetNetworkGraph_Call) Return

func (*MockLNClient_GetNetworkGraph_Call) Run

func (*MockLNClient_GetNetworkGraph_Call) RunAndReturn

type MockLNClient_GetNewOnchainAddress_Call

type MockLNClient_GetNewOnchainAddress_Call struct {
	*mock.Call
}

MockLNClient_GetNewOnchainAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNewOnchainAddress'

func (*MockLNClient_GetNewOnchainAddress_Call) Return

func (*MockLNClient_GetNewOnchainAddress_Call) Run

func (*MockLNClient_GetNewOnchainAddress_Call) RunAndReturn

type MockLNClient_GetNodeConnectionInfo_Call

type MockLNClient_GetNodeConnectionInfo_Call struct {
	*mock.Call
}

MockLNClient_GetNodeConnectionInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNodeConnectionInfo'

func (*MockLNClient_GetNodeConnectionInfo_Call) Return

func (*MockLNClient_GetNodeConnectionInfo_Call) Run

func (*MockLNClient_GetNodeConnectionInfo_Call) RunAndReturn

type MockLNClient_GetNodeStatus_Call

type MockLNClient_GetNodeStatus_Call struct {
	*mock.Call
}

MockLNClient_GetNodeStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNodeStatus'

func (*MockLNClient_GetNodeStatus_Call) Return

func (*MockLNClient_GetNodeStatus_Call) Run

func (*MockLNClient_GetNodeStatus_Call) RunAndReturn

type MockLNClient_GetOnchainBalance_Call

type MockLNClient_GetOnchainBalance_Call struct {
	*mock.Call
}

MockLNClient_GetOnchainBalance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOnchainBalance'

func (*MockLNClient_GetOnchainBalance_Call) Return

func (*MockLNClient_GetOnchainBalance_Call) Run

func (*MockLNClient_GetOnchainBalance_Call) RunAndReturn

type MockLNClient_GetPubkey_Call

type MockLNClient_GetPubkey_Call struct {
	*mock.Call
}

MockLNClient_GetPubkey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPubkey'

func (*MockLNClient_GetPubkey_Call) Return

func (*MockLNClient_GetPubkey_Call) Run

func (*MockLNClient_GetPubkey_Call) RunAndReturn

func (_c *MockLNClient_GetPubkey_Call) RunAndReturn(run func() string) *MockLNClient_GetPubkey_Call

type MockLNClient_GetStorageDir_Call

type MockLNClient_GetStorageDir_Call struct {
	*mock.Call
}

MockLNClient_GetStorageDir_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStorageDir'

func (*MockLNClient_GetStorageDir_Call) Return

func (*MockLNClient_GetStorageDir_Call) Run

func (*MockLNClient_GetStorageDir_Call) RunAndReturn

type MockLNClient_GetSupportedNIP47Methods_Call

type MockLNClient_GetSupportedNIP47Methods_Call struct {
	*mock.Call
}

MockLNClient_GetSupportedNIP47Methods_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSupportedNIP47Methods'

func (*MockLNClient_GetSupportedNIP47Methods_Call) Return

func (*MockLNClient_GetSupportedNIP47Methods_Call) Run

func (*MockLNClient_GetSupportedNIP47Methods_Call) RunAndReturn

type MockLNClient_GetSupportedNIP47NotificationTypes_Call

type MockLNClient_GetSupportedNIP47NotificationTypes_Call struct {
	*mock.Call
}

MockLNClient_GetSupportedNIP47NotificationTypes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSupportedNIP47NotificationTypes'

func (*MockLNClient_GetSupportedNIP47NotificationTypes_Call) Return

func (*MockLNClient_GetSupportedNIP47NotificationTypes_Call) Run

func (*MockLNClient_GetSupportedNIP47NotificationTypes_Call) RunAndReturn

type MockLNClient_ListChannels_Call

type MockLNClient_ListChannels_Call struct {
	*mock.Call
}

MockLNClient_ListChannels_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListChannels'

func (*MockLNClient_ListChannels_Call) Return

func (*MockLNClient_ListChannels_Call) Run

func (*MockLNClient_ListChannels_Call) RunAndReturn

type MockLNClient_ListOnchainTransactions_Call added in v1.17.0

type MockLNClient_ListOnchainTransactions_Call struct {
	*mock.Call
}

MockLNClient_ListOnchainTransactions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListOnchainTransactions'

func (*MockLNClient_ListOnchainTransactions_Call) Return added in v1.17.0

func (*MockLNClient_ListOnchainTransactions_Call) Run added in v1.17.0

func (*MockLNClient_ListOnchainTransactions_Call) RunAndReturn added in v1.17.0

type MockLNClient_ListPeers_Call

type MockLNClient_ListPeers_Call struct {
	*mock.Call
}

MockLNClient_ListPeers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPeers'

func (*MockLNClient_ListPeers_Call) Return

func (*MockLNClient_ListPeers_Call) Run

func (*MockLNClient_ListPeers_Call) RunAndReturn

type MockLNClient_ListTransactions_Call

type MockLNClient_ListTransactions_Call struct {
	*mock.Call
}

MockLNClient_ListTransactions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListTransactions'

func (*MockLNClient_ListTransactions_Call) Return

func (*MockLNClient_ListTransactions_Call) Run

func (_c *MockLNClient_ListTransactions_Call) Run(run func(ctx context.Context, from uint64, until uint64, limit uint64, offset uint64, unpaid bool, invoiceType string)) *MockLNClient_ListTransactions_Call

func (*MockLNClient_ListTransactions_Call) RunAndReturn

func (_c *MockLNClient_ListTransactions_Call) RunAndReturn(run func(ctx context.Context, from uint64, until uint64, limit uint64, offset uint64, unpaid bool, invoiceType string) ([]lnclient.Transaction, error)) *MockLNClient_ListTransactions_Call

type MockLNClient_LookupInvoice_Call

type MockLNClient_LookupInvoice_Call struct {
	*mock.Call
}

MockLNClient_LookupInvoice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LookupInvoice'

func (*MockLNClient_LookupInvoice_Call) Return

func (*MockLNClient_LookupInvoice_Call) Run

func (*MockLNClient_LookupInvoice_Call) RunAndReturn

type MockLNClient_MakeHoldInvoice_Call added in v1.18.0

type MockLNClient_MakeHoldInvoice_Call struct {
	*mock.Call
}

MockLNClient_MakeHoldInvoice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MakeHoldInvoice'

func (*MockLNClient_MakeHoldInvoice_Call) Return added in v1.18.0

func (*MockLNClient_MakeHoldInvoice_Call) Run added in v1.18.0

func (_c *MockLNClient_MakeHoldInvoice_Call) Run(run func(ctx context.Context, amount int64, description string, descriptionHash string, expiry int64, paymentHash string)) *MockLNClient_MakeHoldInvoice_Call

func (*MockLNClient_MakeHoldInvoice_Call) RunAndReturn added in v1.18.0

func (_c *MockLNClient_MakeHoldInvoice_Call) RunAndReturn(run func(ctx context.Context, amount int64, description string, descriptionHash string, expiry int64, paymentHash string) (*lnclient.Transaction, error)) *MockLNClient_MakeHoldInvoice_Call

type MockLNClient_MakeInvoice_Call

type MockLNClient_MakeInvoice_Call struct {
	*mock.Call
}

MockLNClient_MakeInvoice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MakeInvoice'

func (*MockLNClient_MakeInvoice_Call) Return

func (*MockLNClient_MakeInvoice_Call) Run

func (_c *MockLNClient_MakeInvoice_Call) Run(run func(ctx context.Context, amount int64, description string, descriptionHash string, expiry int64)) *MockLNClient_MakeInvoice_Call

func (*MockLNClient_MakeInvoice_Call) RunAndReturn

func (_c *MockLNClient_MakeInvoice_Call) RunAndReturn(run func(ctx context.Context, amount int64, description string, descriptionHash string, expiry int64) (*lnclient.Transaction, error)) *MockLNClient_MakeInvoice_Call

type MockLNClient_MakeOffer_Call added in v1.18.0

type MockLNClient_MakeOffer_Call struct {
	*mock.Call
}

MockLNClient_MakeOffer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MakeOffer'

func (*MockLNClient_MakeOffer_Call) Return added in v1.18.0

func (*MockLNClient_MakeOffer_Call) Run added in v1.18.0

func (_c *MockLNClient_MakeOffer_Call) Run(run func(ctx context.Context, description string)) *MockLNClient_MakeOffer_Call

func (*MockLNClient_MakeOffer_Call) RunAndReturn added in v1.18.0

func (_c *MockLNClient_MakeOffer_Call) RunAndReturn(run func(ctx context.Context, description string) (string, error)) *MockLNClient_MakeOffer_Call

type MockLNClient_OpenChannel_Call

type MockLNClient_OpenChannel_Call struct {
	*mock.Call
}

MockLNClient_OpenChannel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OpenChannel'

func (*MockLNClient_OpenChannel_Call) Return

func (*MockLNClient_OpenChannel_Call) Run

func (*MockLNClient_OpenChannel_Call) RunAndReturn

type MockLNClient_RedeemOnchainFunds_Call

type MockLNClient_RedeemOnchainFunds_Call struct {
	*mock.Call
}

MockLNClient_RedeemOnchainFunds_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RedeemOnchainFunds'

func (*MockLNClient_RedeemOnchainFunds_Call) Return

func (*MockLNClient_RedeemOnchainFunds_Call) Run

func (_c *MockLNClient_RedeemOnchainFunds_Call) Run(run func(ctx context.Context, toAddress string, amount uint64, feeRate *uint64, sendAll bool)) *MockLNClient_RedeemOnchainFunds_Call

func (*MockLNClient_RedeemOnchainFunds_Call) RunAndReturn

func (_c *MockLNClient_RedeemOnchainFunds_Call) RunAndReturn(run func(ctx context.Context, toAddress string, amount uint64, feeRate *uint64, sendAll bool) (string, error)) *MockLNClient_RedeemOnchainFunds_Call

type MockLNClient_ResetRouter_Call

type MockLNClient_ResetRouter_Call struct {
	*mock.Call
}

MockLNClient_ResetRouter_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResetRouter'

func (*MockLNClient_ResetRouter_Call) Return

func (*MockLNClient_ResetRouter_Call) Run

func (*MockLNClient_ResetRouter_Call) RunAndReturn

type MockLNClient_SendKeysend_Call

type MockLNClient_SendKeysend_Call struct {
	*mock.Call
}

MockLNClient_SendKeysend_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendKeysend'

func (*MockLNClient_SendKeysend_Call) Return

func (*MockLNClient_SendKeysend_Call) Run

func (_c *MockLNClient_SendKeysend_Call) Run(run func(ctx context.Context, amount uint64, destination string, customRecords []lnclient.TLVRecord, preimage string)) *MockLNClient_SendKeysend_Call

func (*MockLNClient_SendKeysend_Call) RunAndReturn

func (_c *MockLNClient_SendKeysend_Call) RunAndReturn(run func(ctx context.Context, amount uint64, destination string, customRecords []lnclient.TLVRecord, preimage string) (*lnclient.PayKeysendResponse, error)) *MockLNClient_SendKeysend_Call

type MockLNClient_SendPaymentProbes_Call

type MockLNClient_SendPaymentProbes_Call struct {
	*mock.Call
}

MockLNClient_SendPaymentProbes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendPaymentProbes'

func (*MockLNClient_SendPaymentProbes_Call) Return

func (*MockLNClient_SendPaymentProbes_Call) Run

func (*MockLNClient_SendPaymentProbes_Call) RunAndReturn

type MockLNClient_SendPaymentSync_Call

type MockLNClient_SendPaymentSync_Call struct {
	*mock.Call
}

MockLNClient_SendPaymentSync_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendPaymentSync'

func (*MockLNClient_SendPaymentSync_Call) Return

func (*MockLNClient_SendPaymentSync_Call) Run

func (*MockLNClient_SendPaymentSync_Call) RunAndReturn

type MockLNClient_SendSpontaneousPaymentProbes_Call

type MockLNClient_SendSpontaneousPaymentProbes_Call struct {
	*mock.Call
}

MockLNClient_SendSpontaneousPaymentProbes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendSpontaneousPaymentProbes'

func (*MockLNClient_SendSpontaneousPaymentProbes_Call) Return

func (*MockLNClient_SendSpontaneousPaymentProbes_Call) Run

func (*MockLNClient_SendSpontaneousPaymentProbes_Call) RunAndReturn

type MockLNClient_SettleHoldInvoice_Call added in v1.18.0

type MockLNClient_SettleHoldInvoice_Call struct {
	*mock.Call
}

MockLNClient_SettleHoldInvoice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SettleHoldInvoice'

func (*MockLNClient_SettleHoldInvoice_Call) Return added in v1.18.0

func (*MockLNClient_SettleHoldInvoice_Call) Run added in v1.18.0

func (*MockLNClient_SettleHoldInvoice_Call) RunAndReturn added in v1.18.0

type MockLNClient_Shutdown_Call

type MockLNClient_Shutdown_Call struct {
	*mock.Call
}

MockLNClient_Shutdown_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Shutdown'

func (*MockLNClient_Shutdown_Call) Return

func (*MockLNClient_Shutdown_Call) Run

func (*MockLNClient_Shutdown_Call) RunAndReturn

func (_c *MockLNClient_Shutdown_Call) RunAndReturn(run func() error) *MockLNClient_Shutdown_Call

type MockLNClient_SignMessage_Call

type MockLNClient_SignMessage_Call struct {
	*mock.Call
}

MockLNClient_SignMessage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SignMessage'

func (*MockLNClient_SignMessage_Call) Return

func (*MockLNClient_SignMessage_Call) Run

func (*MockLNClient_SignMessage_Call) RunAndReturn

func (_c *MockLNClient_SignMessage_Call) RunAndReturn(run func(ctx context.Context, message string) (string, error)) *MockLNClient_SignMessage_Call

type MockLNClient_UpdateChannel_Call

type MockLNClient_UpdateChannel_Call struct {
	*mock.Call
}

MockLNClient_UpdateChannel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateChannel'

func (*MockLNClient_UpdateChannel_Call) Return

func (*MockLNClient_UpdateChannel_Call) Run

func (*MockLNClient_UpdateChannel_Call) RunAndReturn

type MockLNClient_UpdateLastWalletSyncRequest_Call

type MockLNClient_UpdateLastWalletSyncRequest_Call struct {
	*mock.Call
}

MockLNClient_UpdateLastWalletSyncRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateLastWalletSyncRequest'

func (*MockLNClient_UpdateLastWalletSyncRequest_Call) Return

func (*MockLNClient_UpdateLastWalletSyncRequest_Call) Run

func (*MockLNClient_UpdateLastWalletSyncRequest_Call) RunAndReturn

type MockService

type MockService struct {
	mock.Mock
}

MockService is an autogenerated mock type for the Service type

func NewMockService

func NewMockService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockService

NewMockService creates a new instance of MockService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockService) EXPECT

func (_m *MockService) EXPECT() *MockService_Expecter

func (*MockService) GetAlbyOAuthSvc

func (_mock *MockService) GetAlbyOAuthSvc() alby.AlbyOAuthService

GetAlbyOAuthSvc provides a mock function for the type MockService

func (*MockService) GetAlbySvc added in v1.19.0

func (_mock *MockService) GetAlbySvc() alby.AlbyService

GetAlbySvc provides a mock function for the type MockService

func (*MockService) GetConfig

func (_mock *MockService) GetConfig() config.Config

GetConfig provides a mock function for the type MockService

func (*MockService) GetDB

func (_mock *MockService) GetDB() *gorm.DB

GetDB provides a mock function for the type MockService

func (*MockService) GetEventPublisher

func (_mock *MockService) GetEventPublisher() events.EventPublisher

GetEventPublisher provides a mock function for the type MockService

func (*MockService) GetKeys

func (_mock *MockService) GetKeys() keys.Keys

GetKeys provides a mock function for the type MockService

func (*MockService) GetLNClient

func (_mock *MockService) GetLNClient() lnclient.LNClient

GetLNClient provides a mock function for the type MockService

func (*MockService) GetStartupState added in v1.14.1

func (_mock *MockService) GetStartupState() string

GetStartupState provides a mock function for the type MockService

func (*MockService) GetSwapsService added in v1.17.0

func (_mock *MockService) GetSwapsService() swaps.SwapsService

GetSwapsService provides a mock function for the type MockService

func (*MockService) GetTransactionsService

func (_mock *MockService) GetTransactionsService() transactions.TransactionsService

GetTransactionsService provides a mock function for the type MockService

func (*MockService) IsRelayReady

func (_mock *MockService) IsRelayReady() bool

IsRelayReady provides a mock function for the type MockService

func (*MockService) Shutdown

func (_mock *MockService) Shutdown()

Shutdown provides a mock function for the type MockService

func (*MockService) StartApp

func (_mock *MockService) StartApp(encryptionKey string) error

StartApp provides a mock function for the type MockService

func (*MockService) StopApp

func (_mock *MockService) StopApp()

StopApp provides a mock function for the type MockService

type MockService_Expecter

type MockService_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockService_Expecter) GetAlbyOAuthSvc

GetAlbyOAuthSvc is a helper method to define mock.On call

func (*MockService_Expecter) GetAlbySvc added in v1.19.0

GetAlbySvc is a helper method to define mock.On call

func (*MockService_Expecter) GetConfig

GetConfig is a helper method to define mock.On call

func (*MockService_Expecter) GetDB

GetDB is a helper method to define mock.On call

func (*MockService_Expecter) GetEventPublisher

GetEventPublisher is a helper method to define mock.On call

func (*MockService_Expecter) GetKeys

GetKeys is a helper method to define mock.On call

func (*MockService_Expecter) GetLNClient

GetLNClient is a helper method to define mock.On call

func (*MockService_Expecter) GetStartupState added in v1.14.1

GetStartupState is a helper method to define mock.On call

func (*MockService_Expecter) GetSwapsService added in v1.17.0

GetSwapsService is a helper method to define mock.On call

func (*MockService_Expecter) GetTransactionsService

func (_e *MockService_Expecter) GetTransactionsService() *MockService_GetTransactionsService_Call

GetTransactionsService is a helper method to define mock.On call

func (*MockService_Expecter) IsRelayReady

IsRelayReady is a helper method to define mock.On call

func (*MockService_Expecter) Shutdown

Shutdown is a helper method to define mock.On call

func (*MockService_Expecter) StartApp

func (_e *MockService_Expecter) StartApp(encryptionKey interface{}) *MockService_StartApp_Call

StartApp is a helper method to define mock.On call

  • encryptionKey

func (*MockService_Expecter) StopApp

StopApp is a helper method to define mock.On call

type MockService_GetAlbyOAuthSvc_Call

type MockService_GetAlbyOAuthSvc_Call struct {
	*mock.Call
}

MockService_GetAlbyOAuthSvc_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAlbyOAuthSvc'

func (*MockService_GetAlbyOAuthSvc_Call) Return

func (*MockService_GetAlbyOAuthSvc_Call) Run

func (*MockService_GetAlbyOAuthSvc_Call) RunAndReturn

type MockService_GetAlbySvc_Call added in v1.19.0

type MockService_GetAlbySvc_Call struct {
	*mock.Call
}

MockService_GetAlbySvc_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAlbySvc'

func (*MockService_GetAlbySvc_Call) Return added in v1.19.0

func (*MockService_GetAlbySvc_Call) Run added in v1.19.0

func (*MockService_GetAlbySvc_Call) RunAndReturn added in v1.19.0

type MockService_GetConfig_Call

type MockService_GetConfig_Call struct {
	*mock.Call
}

MockService_GetConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetConfig'

func (*MockService_GetConfig_Call) Return

func (*MockService_GetConfig_Call) Run

func (*MockService_GetConfig_Call) RunAndReturn

type MockService_GetDB_Call

type MockService_GetDB_Call struct {
	*mock.Call
}

MockService_GetDB_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDB'

func (*MockService_GetDB_Call) Return

func (*MockService_GetDB_Call) Run

func (_c *MockService_GetDB_Call) Run(run func()) *MockService_GetDB_Call

func (*MockService_GetDB_Call) RunAndReturn

func (_c *MockService_GetDB_Call) RunAndReturn(run func() *gorm.DB) *MockService_GetDB_Call

type MockService_GetEventPublisher_Call

type MockService_GetEventPublisher_Call struct {
	*mock.Call
}

MockService_GetEventPublisher_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEventPublisher'

func (*MockService_GetEventPublisher_Call) Return

func (*MockService_GetEventPublisher_Call) Run

func (*MockService_GetEventPublisher_Call) RunAndReturn

type MockService_GetKeys_Call

type MockService_GetKeys_Call struct {
	*mock.Call
}

MockService_GetKeys_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetKeys'

func (*MockService_GetKeys_Call) Return

func (*MockService_GetKeys_Call) Run

func (*MockService_GetKeys_Call) RunAndReturn

func (_c *MockService_GetKeys_Call) RunAndReturn(run func() keys.Keys) *MockService_GetKeys_Call

type MockService_GetLNClient_Call

type MockService_GetLNClient_Call struct {
	*mock.Call
}

MockService_GetLNClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLNClient'

func (*MockService_GetLNClient_Call) Return

func (*MockService_GetLNClient_Call) Run

func (*MockService_GetLNClient_Call) RunAndReturn

type MockService_GetStartupState_Call added in v1.14.1

type MockService_GetStartupState_Call struct {
	*mock.Call
}

MockService_GetStartupState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStartupState'

func (*MockService_GetStartupState_Call) Return added in v1.14.1

func (*MockService_GetStartupState_Call) Run added in v1.14.1

func (*MockService_GetStartupState_Call) RunAndReturn added in v1.14.1

type MockService_GetSwapsService_Call added in v1.17.0

type MockService_GetSwapsService_Call struct {
	*mock.Call
}

MockService_GetSwapsService_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSwapsService'

func (*MockService_GetSwapsService_Call) Return added in v1.17.0

func (*MockService_GetSwapsService_Call) Run added in v1.17.0

func (*MockService_GetSwapsService_Call) RunAndReturn added in v1.17.0

type MockService_GetTransactionsService_Call

type MockService_GetTransactionsService_Call struct {
	*mock.Call
}

MockService_GetTransactionsService_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTransactionsService'

func (*MockService_GetTransactionsService_Call) Return

func (*MockService_GetTransactionsService_Call) Run

func (*MockService_GetTransactionsService_Call) RunAndReturn

type MockService_IsRelayReady_Call

type MockService_IsRelayReady_Call struct {
	*mock.Call
}

MockService_IsRelayReady_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsRelayReady'

func (*MockService_IsRelayReady_Call) Return

func (*MockService_IsRelayReady_Call) Run

func (*MockService_IsRelayReady_Call) RunAndReturn

type MockService_Shutdown_Call

type MockService_Shutdown_Call struct {
	*mock.Call
}

MockService_Shutdown_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Shutdown'

func (*MockService_Shutdown_Call) Return

func (*MockService_Shutdown_Call) Run

func (*MockService_Shutdown_Call) RunAndReturn

func (_c *MockService_Shutdown_Call) RunAndReturn(run func()) *MockService_Shutdown_Call

type MockService_StartApp_Call

type MockService_StartApp_Call struct {
	*mock.Call
}

MockService_StartApp_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StartApp'

func (*MockService_StartApp_Call) Return

func (*MockService_StartApp_Call) Run

func (_c *MockService_StartApp_Call) Run(run func(encryptionKey string)) *MockService_StartApp_Call

func (*MockService_StartApp_Call) RunAndReturn

func (_c *MockService_StartApp_Call) RunAndReturn(run func(encryptionKey string) error) *MockService_StartApp_Call

type MockService_StopApp_Call

type MockService_StopApp_Call struct {
	*mock.Call
}

MockService_StopApp_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StopApp'

func (*MockService_StopApp_Call) Return

func (*MockService_StopApp_Call) Run

func (*MockService_StopApp_Call) RunAndReturn

func (_c *MockService_StopApp_Call) RunAndReturn(run func()) *MockService_StopApp_Call

Jump to

Keyboard shortcuts

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