Documentation
¶
Index ¶
- type MockLNClient
- func (_m *MockLNClient) CloseChannel(ctx context.Context, closeChannelRequest *lnclient.CloseChannelRequest) (*lnclient.CloseChannelResponse, error)
- func (_m *MockLNClient) ConnectPeer(ctx context.Context, connectPeerRequest *lnclient.ConnectPeerRequest) error
- func (_m *MockLNClient) DisconnectPeer(ctx context.Context, peerId string) error
- func (_m *MockLNClient) EXPECT() *MockLNClient_Expecter
- func (_m *MockLNClient) ExecuteCustomNodeCommand(ctx context.Context, command *lnclient.CustomNodeCommandRequest) (*lnclient.CustomNodeCommandResponse, error)
- func (_m *MockLNClient) GetBalances(ctx context.Context) (*lnclient.BalancesResponse, error)
- func (_m *MockLNClient) GetCustomNodeCommandDefinitions() []lnclient.CustomNodeCommandDef
- func (_m *MockLNClient) GetInfo(ctx context.Context) (*lnclient.NodeInfo, error)
- func (_m *MockLNClient) GetLogOutput(ctx context.Context, maxLen int) ([]byte, error)
- func (_m *MockLNClient) GetNetworkGraph(ctx context.Context, nodeIds []string) (lnclient.NetworkGraphResponse, error)
- func (_m *MockLNClient) GetNewOnchainAddress(ctx context.Context) (string, error)
- func (_m *MockLNClient) GetNodeConnectionInfo(ctx context.Context) (*lnclient.NodeConnectionInfo, error)
- func (_m *MockLNClient) GetNodeStatus(ctx context.Context) (*lnclient.NodeStatus, error)
- func (_m *MockLNClient) GetOnchainBalance(ctx context.Context) (*lnclient.OnchainBalanceResponse, error)
- func (_m *MockLNClient) GetPubkey() string
- func (_m *MockLNClient) GetStorageDir() (string, error)
- func (_m *MockLNClient) GetSupportedNIP47Methods() []string
- func (_m *MockLNClient) GetSupportedNIP47NotificationTypes() []string
- func (_m *MockLNClient) ListChannels(ctx context.Context) ([]lnclient.Channel, error)
- func (_m *MockLNClient) ListPeers(ctx context.Context) ([]lnclient.PeerDetails, error)
- func (_m *MockLNClient) ListTransactions(ctx context.Context, from uint64, until uint64, limit uint64, offset uint64, ...) ([]lnclient.Transaction, error)
- func (_m *MockLNClient) LookupInvoice(ctx context.Context, paymentHash string) (*lnclient.Transaction, error)
- func (_m *MockLNClient) MakeInvoice(ctx context.Context, amount int64, description string, descriptionHash string, ...) (*lnclient.Transaction, error)
- func (_m *MockLNClient) OpenChannel(ctx context.Context, openChannelRequest *lnclient.OpenChannelRequest) (*lnclient.OpenChannelResponse, error)
- func (_m *MockLNClient) RedeemOnchainFunds(ctx context.Context, toAddress string, amount uint64, sendAll bool) (string, error)
- func (_m *MockLNClient) ResetRouter(key string) error
- func (_m *MockLNClient) SendKeysend(ctx context.Context, amount uint64, destination string, ...) (*lnclient.PayKeysendResponse, error)
- func (_m *MockLNClient) SendPaymentProbes(ctx context.Context, invoice string) error
- func (_m *MockLNClient) SendPaymentSync(ctx context.Context, payReq string, amount *uint64) (*lnclient.PayInvoiceResponse, error)
- func (_m *MockLNClient) SendSpontaneousPaymentProbes(ctx context.Context, amountMsat uint64, nodeId string) error
- func (_m *MockLNClient) Shutdown() error
- func (_m *MockLNClient) SignMessage(ctx context.Context, message string) (string, error)
- func (_m *MockLNClient) UpdateChannel(ctx context.Context, updateChannelRequest *lnclient.UpdateChannelRequest) error
- func (_m *MockLNClient) UpdateLastWalletSyncRequest()
- type MockLNClient_CloseChannel_Call
- func (_c *MockLNClient_CloseChannel_Call) Return(_a0 *lnclient.CloseChannelResponse, _a1 error) *MockLNClient_CloseChannel_Call
- func (_c *MockLNClient_CloseChannel_Call) Run(...) *MockLNClient_CloseChannel_Call
- func (_c *MockLNClient_CloseChannel_Call) RunAndReturn(...) *MockLNClient_CloseChannel_Call
- type MockLNClient_ConnectPeer_Call
- func (_c *MockLNClient_ConnectPeer_Call) Return(_a0 error) *MockLNClient_ConnectPeer_Call
- func (_c *MockLNClient_ConnectPeer_Call) Run(run func(ctx context.Context, connectPeerRequest *lnclient.ConnectPeerRequest)) *MockLNClient_ConnectPeer_Call
- func (_c *MockLNClient_ConnectPeer_Call) RunAndReturn(run func(context.Context, *lnclient.ConnectPeerRequest) error) *MockLNClient_ConnectPeer_Call
- type MockLNClient_DisconnectPeer_Call
- func (_c *MockLNClient_DisconnectPeer_Call) Return(_a0 error) *MockLNClient_DisconnectPeer_Call
- func (_c *MockLNClient_DisconnectPeer_Call) Run(run func(ctx context.Context, peerId string)) *MockLNClient_DisconnectPeer_Call
- func (_c *MockLNClient_DisconnectPeer_Call) RunAndReturn(run func(context.Context, string) error) *MockLNClient_DisconnectPeer_Call
- type MockLNClient_ExecuteCustomNodeCommand_Call
- func (_c *MockLNClient_ExecuteCustomNodeCommand_Call) Return(_a0 *lnclient.CustomNodeCommandResponse, _a1 error) *MockLNClient_ExecuteCustomNodeCommand_Call
- func (_c *MockLNClient_ExecuteCustomNodeCommand_Call) Run(run func(ctx context.Context, command *lnclient.CustomNodeCommandRequest)) *MockLNClient_ExecuteCustomNodeCommand_Call
- func (_c *MockLNClient_ExecuteCustomNodeCommand_Call) RunAndReturn(...) *MockLNClient_ExecuteCustomNodeCommand_Call
- type MockLNClient_Expecter
- func (_e *MockLNClient_Expecter) CloseChannel(ctx interface{}, closeChannelRequest interface{}) *MockLNClient_CloseChannel_Call
- func (_e *MockLNClient_Expecter) ConnectPeer(ctx interface{}, connectPeerRequest interface{}) *MockLNClient_ConnectPeer_Call
- func (_e *MockLNClient_Expecter) DisconnectPeer(ctx interface{}, peerId interface{}) *MockLNClient_DisconnectPeer_Call
- func (_e *MockLNClient_Expecter) ExecuteCustomNodeCommand(ctx interface{}, command interface{}) *MockLNClient_ExecuteCustomNodeCommand_Call
- func (_e *MockLNClient_Expecter) GetBalances(ctx interface{}) *MockLNClient_GetBalances_Call
- func (_e *MockLNClient_Expecter) GetCustomNodeCommandDefinitions() *MockLNClient_GetCustomNodeCommandDefinitions_Call
- func (_e *MockLNClient_Expecter) GetInfo(ctx interface{}) *MockLNClient_GetInfo_Call
- func (_e *MockLNClient_Expecter) GetLogOutput(ctx interface{}, maxLen interface{}) *MockLNClient_GetLogOutput_Call
- func (_e *MockLNClient_Expecter) GetNetworkGraph(ctx interface{}, nodeIds interface{}) *MockLNClient_GetNetworkGraph_Call
- func (_e *MockLNClient_Expecter) GetNewOnchainAddress(ctx interface{}) *MockLNClient_GetNewOnchainAddress_Call
- func (_e *MockLNClient_Expecter) GetNodeConnectionInfo(ctx interface{}) *MockLNClient_GetNodeConnectionInfo_Call
- func (_e *MockLNClient_Expecter) GetNodeStatus(ctx interface{}) *MockLNClient_GetNodeStatus_Call
- func (_e *MockLNClient_Expecter) GetOnchainBalance(ctx interface{}) *MockLNClient_GetOnchainBalance_Call
- func (_e *MockLNClient_Expecter) GetPubkey() *MockLNClient_GetPubkey_Call
- func (_e *MockLNClient_Expecter) GetStorageDir() *MockLNClient_GetStorageDir_Call
- func (_e *MockLNClient_Expecter) GetSupportedNIP47Methods() *MockLNClient_GetSupportedNIP47Methods_Call
- func (_e *MockLNClient_Expecter) GetSupportedNIP47NotificationTypes() *MockLNClient_GetSupportedNIP47NotificationTypes_Call
- func (_e *MockLNClient_Expecter) ListChannels(ctx interface{}) *MockLNClient_ListChannels_Call
- func (_e *MockLNClient_Expecter) ListPeers(ctx interface{}) *MockLNClient_ListPeers_Call
- func (_e *MockLNClient_Expecter) ListTransactions(ctx interface{}, from interface{}, until interface{}, limit interface{}, ...) *MockLNClient_ListTransactions_Call
- func (_e *MockLNClient_Expecter) LookupInvoice(ctx interface{}, paymentHash interface{}) *MockLNClient_LookupInvoice_Call
- func (_e *MockLNClient_Expecter) MakeInvoice(ctx interface{}, amount interface{}, description interface{}, ...) *MockLNClient_MakeInvoice_Call
- func (_e *MockLNClient_Expecter) OpenChannel(ctx interface{}, openChannelRequest interface{}) *MockLNClient_OpenChannel_Call
- func (_e *MockLNClient_Expecter) RedeemOnchainFunds(ctx interface{}, toAddress interface{}, amount interface{}, ...) *MockLNClient_RedeemOnchainFunds_Call
- func (_e *MockLNClient_Expecter) ResetRouter(key interface{}) *MockLNClient_ResetRouter_Call
- func (_e *MockLNClient_Expecter) SendKeysend(ctx interface{}, amount interface{}, destination interface{}, ...) *MockLNClient_SendKeysend_Call
- func (_e *MockLNClient_Expecter) SendPaymentProbes(ctx interface{}, invoice interface{}) *MockLNClient_SendPaymentProbes_Call
- func (_e *MockLNClient_Expecter) SendPaymentSync(ctx interface{}, payReq interface{}, amount interface{}) *MockLNClient_SendPaymentSync_Call
- func (_e *MockLNClient_Expecter) SendSpontaneousPaymentProbes(ctx interface{}, amountMsat interface{}, nodeId interface{}) *MockLNClient_SendSpontaneousPaymentProbes_Call
- func (_e *MockLNClient_Expecter) Shutdown() *MockLNClient_Shutdown_Call
- func (_e *MockLNClient_Expecter) SignMessage(ctx interface{}, message interface{}) *MockLNClient_SignMessage_Call
- func (_e *MockLNClient_Expecter) UpdateChannel(ctx interface{}, updateChannelRequest interface{}) *MockLNClient_UpdateChannel_Call
- func (_e *MockLNClient_Expecter) UpdateLastWalletSyncRequest() *MockLNClient_UpdateLastWalletSyncRequest_Call
- type MockLNClient_GetBalances_Call
- func (_c *MockLNClient_GetBalances_Call) Return(_a0 *lnclient.BalancesResponse, _a1 error) *MockLNClient_GetBalances_Call
- func (_c *MockLNClient_GetBalances_Call) Run(run func(ctx context.Context)) *MockLNClient_GetBalances_Call
- func (_c *MockLNClient_GetBalances_Call) RunAndReturn(run func(context.Context) (*lnclient.BalancesResponse, error)) *MockLNClient_GetBalances_Call
- type MockLNClient_GetCustomNodeCommandDefinitions_Call
- func (_c *MockLNClient_GetCustomNodeCommandDefinitions_Call) Return(_a0 []lnclient.CustomNodeCommandDef) *MockLNClient_GetCustomNodeCommandDefinitions_Call
- func (_c *MockLNClient_GetCustomNodeCommandDefinitions_Call) Run(run func()) *MockLNClient_GetCustomNodeCommandDefinitions_Call
- func (_c *MockLNClient_GetCustomNodeCommandDefinitions_Call) RunAndReturn(run func() []lnclient.CustomNodeCommandDef) *MockLNClient_GetCustomNodeCommandDefinitions_Call
- type MockLNClient_GetInfo_Call
- func (_c *MockLNClient_GetInfo_Call) Return(info *lnclient.NodeInfo, err error) *MockLNClient_GetInfo_Call
- func (_c *MockLNClient_GetInfo_Call) Run(run func(ctx context.Context)) *MockLNClient_GetInfo_Call
- func (_c *MockLNClient_GetInfo_Call) RunAndReturn(run func(context.Context) (*lnclient.NodeInfo, error)) *MockLNClient_GetInfo_Call
- type MockLNClient_GetLogOutput_Call
- func (_c *MockLNClient_GetLogOutput_Call) Return(_a0 []byte, _a1 error) *MockLNClient_GetLogOutput_Call
- func (_c *MockLNClient_GetLogOutput_Call) Run(run func(ctx context.Context, maxLen int)) *MockLNClient_GetLogOutput_Call
- func (_c *MockLNClient_GetLogOutput_Call) RunAndReturn(run func(context.Context, int) ([]byte, error)) *MockLNClient_GetLogOutput_Call
- type MockLNClient_GetNetworkGraph_Call
- func (_c *MockLNClient_GetNetworkGraph_Call) Return(_a0 lnclient.NetworkGraphResponse, _a1 error) *MockLNClient_GetNetworkGraph_Call
- func (_c *MockLNClient_GetNetworkGraph_Call) Run(run func(ctx context.Context, nodeIds []string)) *MockLNClient_GetNetworkGraph_Call
- func (_c *MockLNClient_GetNetworkGraph_Call) RunAndReturn(run func(context.Context, []string) (lnclient.NetworkGraphResponse, error)) *MockLNClient_GetNetworkGraph_Call
- type MockLNClient_GetNewOnchainAddress_Call
- func (_c *MockLNClient_GetNewOnchainAddress_Call) Return(_a0 string, _a1 error) *MockLNClient_GetNewOnchainAddress_Call
- func (_c *MockLNClient_GetNewOnchainAddress_Call) Run(run func(ctx context.Context)) *MockLNClient_GetNewOnchainAddress_Call
- func (_c *MockLNClient_GetNewOnchainAddress_Call) RunAndReturn(run func(context.Context) (string, error)) *MockLNClient_GetNewOnchainAddress_Call
- type MockLNClient_GetNodeConnectionInfo_Call
- func (_c *MockLNClient_GetNodeConnectionInfo_Call) Return(nodeConnectionInfo *lnclient.NodeConnectionInfo, err error) *MockLNClient_GetNodeConnectionInfo_Call
- func (_c *MockLNClient_GetNodeConnectionInfo_Call) Run(run func(ctx context.Context)) *MockLNClient_GetNodeConnectionInfo_Call
- func (_c *MockLNClient_GetNodeConnectionInfo_Call) RunAndReturn(run func(context.Context) (*lnclient.NodeConnectionInfo, error)) *MockLNClient_GetNodeConnectionInfo_Call
- type MockLNClient_GetNodeStatus_Call
- func (_c *MockLNClient_GetNodeStatus_Call) Return(nodeStatus *lnclient.NodeStatus, err error) *MockLNClient_GetNodeStatus_Call
- func (_c *MockLNClient_GetNodeStatus_Call) Run(run func(ctx context.Context)) *MockLNClient_GetNodeStatus_Call
- func (_c *MockLNClient_GetNodeStatus_Call) RunAndReturn(run func(context.Context) (*lnclient.NodeStatus, error)) *MockLNClient_GetNodeStatus_Call
- type MockLNClient_GetOnchainBalance_Call
- func (_c *MockLNClient_GetOnchainBalance_Call) Return(_a0 *lnclient.OnchainBalanceResponse, _a1 error) *MockLNClient_GetOnchainBalance_Call
- func (_c *MockLNClient_GetOnchainBalance_Call) Run(run func(ctx context.Context)) *MockLNClient_GetOnchainBalance_Call
- func (_c *MockLNClient_GetOnchainBalance_Call) RunAndReturn(run func(context.Context) (*lnclient.OnchainBalanceResponse, error)) *MockLNClient_GetOnchainBalance_Call
- type MockLNClient_GetPubkey_Call
- type MockLNClient_GetStorageDir_Call
- func (_c *MockLNClient_GetStorageDir_Call) Return(_a0 string, _a1 error) *MockLNClient_GetStorageDir_Call
- func (_c *MockLNClient_GetStorageDir_Call) Run(run func()) *MockLNClient_GetStorageDir_Call
- func (_c *MockLNClient_GetStorageDir_Call) RunAndReturn(run func() (string, error)) *MockLNClient_GetStorageDir_Call
- type MockLNClient_GetSupportedNIP47Methods_Call
- func (_c *MockLNClient_GetSupportedNIP47Methods_Call) Return(_a0 []string) *MockLNClient_GetSupportedNIP47Methods_Call
- func (_c *MockLNClient_GetSupportedNIP47Methods_Call) Run(run func()) *MockLNClient_GetSupportedNIP47Methods_Call
- func (_c *MockLNClient_GetSupportedNIP47Methods_Call) RunAndReturn(run func() []string) *MockLNClient_GetSupportedNIP47Methods_Call
- type MockLNClient_GetSupportedNIP47NotificationTypes_Call
- func (_c *MockLNClient_GetSupportedNIP47NotificationTypes_Call) Return(_a0 []string) *MockLNClient_GetSupportedNIP47NotificationTypes_Call
- func (_c *MockLNClient_GetSupportedNIP47NotificationTypes_Call) Run(run func()) *MockLNClient_GetSupportedNIP47NotificationTypes_Call
- func (_c *MockLNClient_GetSupportedNIP47NotificationTypes_Call) RunAndReturn(run func() []string) *MockLNClient_GetSupportedNIP47NotificationTypes_Call
- type MockLNClient_ListChannels_Call
- func (_c *MockLNClient_ListChannels_Call) Return(channels []lnclient.Channel, err error) *MockLNClient_ListChannels_Call
- func (_c *MockLNClient_ListChannels_Call) Run(run func(ctx context.Context)) *MockLNClient_ListChannels_Call
- func (_c *MockLNClient_ListChannels_Call) RunAndReturn(run func(context.Context) ([]lnclient.Channel, error)) *MockLNClient_ListChannels_Call
- type MockLNClient_ListPeers_Call
- func (_c *MockLNClient_ListPeers_Call) Return(_a0 []lnclient.PeerDetails, _a1 error) *MockLNClient_ListPeers_Call
- func (_c *MockLNClient_ListPeers_Call) Run(run func(ctx context.Context)) *MockLNClient_ListPeers_Call
- func (_c *MockLNClient_ListPeers_Call) RunAndReturn(run func(context.Context) ([]lnclient.PeerDetails, error)) *MockLNClient_ListPeers_Call
- type MockLNClient_ListTransactions_Call
- func (_c *MockLNClient_ListTransactions_Call) Return(transactions []lnclient.Transaction, err error) *MockLNClient_ListTransactions_Call
- func (_c *MockLNClient_ListTransactions_Call) Run(...) *MockLNClient_ListTransactions_Call
- func (_c *MockLNClient_ListTransactions_Call) RunAndReturn(...) *MockLNClient_ListTransactions_Call
- type MockLNClient_LookupInvoice_Call
- func (_c *MockLNClient_LookupInvoice_Call) Return(transaction *lnclient.Transaction, err error) *MockLNClient_LookupInvoice_Call
- func (_c *MockLNClient_LookupInvoice_Call) Run(run func(ctx context.Context, paymentHash string)) *MockLNClient_LookupInvoice_Call
- func (_c *MockLNClient_LookupInvoice_Call) RunAndReturn(run func(context.Context, string) (*lnclient.Transaction, error)) *MockLNClient_LookupInvoice_Call
- type MockLNClient_MakeInvoice_Call
- type MockLNClient_OpenChannel_Call
- func (_c *MockLNClient_OpenChannel_Call) Return(_a0 *lnclient.OpenChannelResponse, _a1 error) *MockLNClient_OpenChannel_Call
- func (_c *MockLNClient_OpenChannel_Call) Run(run func(ctx context.Context, openChannelRequest *lnclient.OpenChannelRequest)) *MockLNClient_OpenChannel_Call
- func (_c *MockLNClient_OpenChannel_Call) RunAndReturn(...) *MockLNClient_OpenChannel_Call
- type MockLNClient_RedeemOnchainFunds_Call
- func (_c *MockLNClient_RedeemOnchainFunds_Call) Return(txId string, err error) *MockLNClient_RedeemOnchainFunds_Call
- func (_c *MockLNClient_RedeemOnchainFunds_Call) Run(run func(ctx context.Context, toAddress string, amount uint64, sendAll bool)) *MockLNClient_RedeemOnchainFunds_Call
- func (_c *MockLNClient_RedeemOnchainFunds_Call) RunAndReturn(run func(context.Context, string, uint64, bool) (string, error)) *MockLNClient_RedeemOnchainFunds_Call
- type MockLNClient_ResetRouter_Call
- type MockLNClient_SendKeysend_Call
- func (_c *MockLNClient_SendKeysend_Call) Return(_a0 *lnclient.PayKeysendResponse, _a1 error) *MockLNClient_SendKeysend_Call
- func (_c *MockLNClient_SendKeysend_Call) Run(run func(ctx context.Context, amount uint64, destination string, ...)) *MockLNClient_SendKeysend_Call
- func (_c *MockLNClient_SendKeysend_Call) RunAndReturn(...) *MockLNClient_SendKeysend_Call
- type MockLNClient_SendPaymentProbes_Call
- func (_c *MockLNClient_SendPaymentProbes_Call) Return(_a0 error) *MockLNClient_SendPaymentProbes_Call
- func (_c *MockLNClient_SendPaymentProbes_Call) Run(run func(ctx context.Context, invoice string)) *MockLNClient_SendPaymentProbes_Call
- func (_c *MockLNClient_SendPaymentProbes_Call) RunAndReturn(run func(context.Context, string) error) *MockLNClient_SendPaymentProbes_Call
- type MockLNClient_SendPaymentSync_Call
- func (_c *MockLNClient_SendPaymentSync_Call) Return(_a0 *lnclient.PayInvoiceResponse, _a1 error) *MockLNClient_SendPaymentSync_Call
- func (_c *MockLNClient_SendPaymentSync_Call) Run(run func(ctx context.Context, payReq string, amount *uint64)) *MockLNClient_SendPaymentSync_Call
- func (_c *MockLNClient_SendPaymentSync_Call) RunAndReturn(...) *MockLNClient_SendPaymentSync_Call
- type MockLNClient_SendSpontaneousPaymentProbes_Call
- func (_c *MockLNClient_SendSpontaneousPaymentProbes_Call) Return(_a0 error) *MockLNClient_SendSpontaneousPaymentProbes_Call
- func (_c *MockLNClient_SendSpontaneousPaymentProbes_Call) Run(run func(ctx context.Context, amountMsat uint64, nodeId string)) *MockLNClient_SendSpontaneousPaymentProbes_Call
- func (_c *MockLNClient_SendSpontaneousPaymentProbes_Call) RunAndReturn(run func(context.Context, uint64, string) error) *MockLNClient_SendSpontaneousPaymentProbes_Call
- type MockLNClient_Shutdown_Call
- type MockLNClient_SignMessage_Call
- func (_c *MockLNClient_SignMessage_Call) Return(_a0 string, _a1 error) *MockLNClient_SignMessage_Call
- func (_c *MockLNClient_SignMessage_Call) Run(run func(ctx context.Context, message string)) *MockLNClient_SignMessage_Call
- func (_c *MockLNClient_SignMessage_Call) RunAndReturn(run func(context.Context, string) (string, error)) *MockLNClient_SignMessage_Call
- type MockLNClient_UpdateChannel_Call
- func (_c *MockLNClient_UpdateChannel_Call) Return(_a0 error) *MockLNClient_UpdateChannel_Call
- func (_c *MockLNClient_UpdateChannel_Call) Run(...) *MockLNClient_UpdateChannel_Call
- func (_c *MockLNClient_UpdateChannel_Call) RunAndReturn(run func(context.Context, *lnclient.UpdateChannelRequest) error) *MockLNClient_UpdateChannel_Call
- type MockLNClient_UpdateLastWalletSyncRequest_Call
- func (_c *MockLNClient_UpdateLastWalletSyncRequest_Call) Return() *MockLNClient_UpdateLastWalletSyncRequest_Call
- func (_c *MockLNClient_UpdateLastWalletSyncRequest_Call) Run(run func()) *MockLNClient_UpdateLastWalletSyncRequest_Call
- func (_c *MockLNClient_UpdateLastWalletSyncRequest_Call) RunAndReturn(run func()) *MockLNClient_UpdateLastWalletSyncRequest_Call
- type MockService
- func (_m *MockService) EXPECT() *MockService_Expecter
- func (_m *MockService) GetAlbyOAuthSvc() alby.AlbyOAuthService
- func (_m *MockService) GetConfig() config.Config
- func (_m *MockService) GetDB() *gorm.DB
- func (_m *MockService) GetEventPublisher() events.EventPublisher
- func (_m *MockService) GetKeys() keys.Keys
- func (_m *MockService) GetLNClient() lnclient.LNClient
- func (_m *MockService) GetStartupState() string
- func (_m *MockService) GetTransactionsService() transactions.TransactionsService
- func (_m *MockService) IsRelayReady() bool
- func (_m *MockService) Shutdown()
- func (_m *MockService) StartApp(encryptionKey string) error
- func (_m *MockService) StopApp()
- type MockService_Expecter
- func (_e *MockService_Expecter) GetAlbyOAuthSvc() *MockService_GetAlbyOAuthSvc_Call
- func (_e *MockService_Expecter) GetConfig() *MockService_GetConfig_Call
- func (_e *MockService_Expecter) GetDB() *MockService_GetDB_Call
- func (_e *MockService_Expecter) GetEventPublisher() *MockService_GetEventPublisher_Call
- func (_e *MockService_Expecter) GetKeys() *MockService_GetKeys_Call
- func (_e *MockService_Expecter) GetLNClient() *MockService_GetLNClient_Call
- func (_e *MockService_Expecter) GetStartupState() *MockService_GetStartupState_Call
- func (_e *MockService_Expecter) GetTransactionsService() *MockService_GetTransactionsService_Call
- func (_e *MockService_Expecter) IsRelayReady() *MockService_IsRelayReady_Call
- func (_e *MockService_Expecter) Shutdown() *MockService_Shutdown_Call
- func (_e *MockService_Expecter) StartApp(encryptionKey interface{}) *MockService_StartApp_Call
- func (_e *MockService_Expecter) StopApp() *MockService_StopApp_Call
- type MockService_GetAlbyOAuthSvc_Call
- func (_c *MockService_GetAlbyOAuthSvc_Call) Return(_a0 alby.AlbyOAuthService) *MockService_GetAlbyOAuthSvc_Call
- func (_c *MockService_GetAlbyOAuthSvc_Call) Run(run func()) *MockService_GetAlbyOAuthSvc_Call
- func (_c *MockService_GetAlbyOAuthSvc_Call) RunAndReturn(run func() alby.AlbyOAuthService) *MockService_GetAlbyOAuthSvc_Call
- type MockService_GetConfig_Call
- type MockService_GetDB_Call
- type MockService_GetEventPublisher_Call
- func (_c *MockService_GetEventPublisher_Call) Return(_a0 events.EventPublisher) *MockService_GetEventPublisher_Call
- func (_c *MockService_GetEventPublisher_Call) Run(run func()) *MockService_GetEventPublisher_Call
- func (_c *MockService_GetEventPublisher_Call) RunAndReturn(run func() events.EventPublisher) *MockService_GetEventPublisher_Call
- type MockService_GetKeys_Call
- type MockService_GetLNClient_Call
- type MockService_GetStartupState_Call
- func (_c *MockService_GetStartupState_Call) Return(_a0 string) *MockService_GetStartupState_Call
- func (_c *MockService_GetStartupState_Call) Run(run func()) *MockService_GetStartupState_Call
- func (_c *MockService_GetStartupState_Call) RunAndReturn(run func() string) *MockService_GetStartupState_Call
- type MockService_GetTransactionsService_Call
- func (_c *MockService_GetTransactionsService_Call) Return(_a0 transactions.TransactionsService) *MockService_GetTransactionsService_Call
- func (_c *MockService_GetTransactionsService_Call) Run(run func()) *MockService_GetTransactionsService_Call
- func (_c *MockService_GetTransactionsService_Call) RunAndReturn(run func() transactions.TransactionsService) *MockService_GetTransactionsService_Call
- type MockService_IsRelayReady_Call
- type MockService_Shutdown_Call
- type MockService_StartApp_Call
- type MockService_StopApp_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockLNClient ¶
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) CloseChannel ¶
func (_m *MockLNClient) CloseChannel(ctx context.Context, closeChannelRequest *lnclient.CloseChannelRequest) (*lnclient.CloseChannelResponse, error)
CloseChannel provides a mock function with given fields: ctx, closeChannelRequest
func (*MockLNClient) ConnectPeer ¶
func (_m *MockLNClient) ConnectPeer(ctx context.Context, connectPeerRequest *lnclient.ConnectPeerRequest) error
ConnectPeer provides a mock function with given fields: ctx, connectPeerRequest
func (*MockLNClient) DisconnectPeer ¶
func (_m *MockLNClient) DisconnectPeer(ctx context.Context, peerId string) error
DisconnectPeer provides a mock function with given fields: ctx, peerId
func (*MockLNClient) EXPECT ¶
func (_m *MockLNClient) EXPECT() *MockLNClient_Expecter
func (*MockLNClient) ExecuteCustomNodeCommand ¶
func (_m *MockLNClient) ExecuteCustomNodeCommand(ctx context.Context, command *lnclient.CustomNodeCommandRequest) (*lnclient.CustomNodeCommandResponse, error)
ExecuteCustomNodeCommand provides a mock function with given fields: ctx, command
func (*MockLNClient) GetBalances ¶
func (_m *MockLNClient) GetBalances(ctx context.Context) (*lnclient.BalancesResponse, error)
GetBalances provides a mock function with given fields: ctx
func (*MockLNClient) GetCustomNodeCommandDefinitions ¶
func (_m *MockLNClient) GetCustomNodeCommandDefinitions() []lnclient.CustomNodeCommandDef
GetCustomNodeCommandDefinitions provides a mock function with no fields
func (*MockLNClient) GetLogOutput ¶
GetLogOutput provides a mock function with given fields: ctx, maxLen
func (*MockLNClient) GetNetworkGraph ¶
func (_m *MockLNClient) GetNetworkGraph(ctx context.Context, nodeIds []string) (lnclient.NetworkGraphResponse, error)
GetNetworkGraph provides a mock function with given fields: ctx, nodeIds
func (*MockLNClient) GetNewOnchainAddress ¶
func (_m *MockLNClient) GetNewOnchainAddress(ctx context.Context) (string, error)
GetNewOnchainAddress provides a mock function with given fields: ctx
func (*MockLNClient) GetNodeConnectionInfo ¶
func (_m *MockLNClient) GetNodeConnectionInfo(ctx context.Context) (*lnclient.NodeConnectionInfo, error)
GetNodeConnectionInfo provides a mock function with given fields: ctx
func (*MockLNClient) GetNodeStatus ¶
func (_m *MockLNClient) GetNodeStatus(ctx context.Context) (*lnclient.NodeStatus, error)
GetNodeStatus provides a mock function with given fields: ctx
func (*MockLNClient) GetOnchainBalance ¶
func (_m *MockLNClient) GetOnchainBalance(ctx context.Context) (*lnclient.OnchainBalanceResponse, error)
GetOnchainBalance provides a mock function with given fields: ctx
func (*MockLNClient) GetPubkey ¶
func (_m *MockLNClient) GetPubkey() string
GetPubkey provides a mock function with no fields
func (*MockLNClient) GetStorageDir ¶
func (_m *MockLNClient) GetStorageDir() (string, error)
GetStorageDir provides a mock function with no fields
func (*MockLNClient) GetSupportedNIP47Methods ¶
func (_m *MockLNClient) GetSupportedNIP47Methods() []string
GetSupportedNIP47Methods provides a mock function with no fields
func (*MockLNClient) GetSupportedNIP47NotificationTypes ¶
func (_m *MockLNClient) GetSupportedNIP47NotificationTypes() []string
GetSupportedNIP47NotificationTypes provides a mock function with no fields
func (*MockLNClient) ListChannels ¶
ListChannels provides a mock function with given fields: ctx
func (*MockLNClient) ListPeers ¶
func (_m *MockLNClient) ListPeers(ctx context.Context) ([]lnclient.PeerDetails, error)
ListPeers provides a mock function with given fields: ctx
func (*MockLNClient) ListTransactions ¶
func (_m *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 with given fields: ctx, from, until, limit, offset, unpaid, invoiceType
func (*MockLNClient) LookupInvoice ¶
func (_m *MockLNClient) LookupInvoice(ctx context.Context, paymentHash string) (*lnclient.Transaction, error)
LookupInvoice provides a mock function with given fields: ctx, paymentHash
func (*MockLNClient) MakeInvoice ¶
func (_m *MockLNClient) MakeInvoice(ctx context.Context, amount int64, description string, descriptionHash string, expiry int64) (*lnclient.Transaction, error)
MakeInvoice provides a mock function with given fields: ctx, amount, description, descriptionHash, expiry
func (*MockLNClient) OpenChannel ¶
func (_m *MockLNClient) OpenChannel(ctx context.Context, openChannelRequest *lnclient.OpenChannelRequest) (*lnclient.OpenChannelResponse, error)
OpenChannel provides a mock function with given fields: ctx, openChannelRequest
func (*MockLNClient) RedeemOnchainFunds ¶
func (_m *MockLNClient) RedeemOnchainFunds(ctx context.Context, toAddress string, amount uint64, sendAll bool) (string, error)
RedeemOnchainFunds provides a mock function with given fields: ctx, toAddress, amount, sendAll
func (*MockLNClient) ResetRouter ¶
func (_m *MockLNClient) ResetRouter(key string) error
ResetRouter provides a mock function with given fields: key
func (*MockLNClient) SendKeysend ¶
func (_m *MockLNClient) SendKeysend(ctx context.Context, amount uint64, destination string, customRecords []lnclient.TLVRecord, preimage string) (*lnclient.PayKeysendResponse, error)
SendKeysend provides a mock function with given fields: ctx, amount, destination, customRecords, preimage
func (*MockLNClient) SendPaymentProbes ¶
func (_m *MockLNClient) SendPaymentProbes(ctx context.Context, invoice string) error
SendPaymentProbes provides a mock function with given fields: ctx, invoice
func (*MockLNClient) SendPaymentSync ¶
func (_m *MockLNClient) SendPaymentSync(ctx context.Context, payReq string, amount *uint64) (*lnclient.PayInvoiceResponse, error)
SendPaymentSync provides a mock function with given fields: ctx, payReq, amount
func (*MockLNClient) SendSpontaneousPaymentProbes ¶
func (_m *MockLNClient) SendSpontaneousPaymentProbes(ctx context.Context, amountMsat uint64, nodeId string) error
SendSpontaneousPaymentProbes provides a mock function with given fields: ctx, amountMsat, nodeId
func (*MockLNClient) Shutdown ¶
func (_m *MockLNClient) Shutdown() error
Shutdown provides a mock function with no fields
func (*MockLNClient) SignMessage ¶
SignMessage provides a mock function with given fields: ctx, message
func (*MockLNClient) UpdateChannel ¶
func (_m *MockLNClient) UpdateChannel(ctx context.Context, updateChannelRequest *lnclient.UpdateChannelRequest) error
UpdateChannel provides a mock function with given fields: ctx, updateChannelRequest
func (*MockLNClient) UpdateLastWalletSyncRequest ¶
func (_m *MockLNClient) UpdateLastWalletSyncRequest()
UpdateLastWalletSyncRequest provides a mock function with no fields
type MockLNClient_CloseChannel_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 (_c *MockLNClient_CloseChannel_Call) Return(_a0 *lnclient.CloseChannelResponse, _a1 error) *MockLNClient_CloseChannel_Call
func (*MockLNClient_CloseChannel_Call) Run ¶
func (_c *MockLNClient_CloseChannel_Call) Run(run func(ctx context.Context, closeChannelRequest *lnclient.CloseChannelRequest)) *MockLNClient_CloseChannel_Call
func (*MockLNClient_CloseChannel_Call) RunAndReturn ¶
func (_c *MockLNClient_CloseChannel_Call) RunAndReturn(run func(context.Context, *lnclient.CloseChannelRequest) (*lnclient.CloseChannelResponse, error)) *MockLNClient_CloseChannel_Call
type MockLNClient_ConnectPeer_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 (_c *MockLNClient_ConnectPeer_Call) Return(_a0 error) *MockLNClient_ConnectPeer_Call
func (*MockLNClient_ConnectPeer_Call) Run ¶
func (_c *MockLNClient_ConnectPeer_Call) Run(run func(ctx context.Context, connectPeerRequest *lnclient.ConnectPeerRequest)) *MockLNClient_ConnectPeer_Call
func (*MockLNClient_ConnectPeer_Call) RunAndReturn ¶
func (_c *MockLNClient_ConnectPeer_Call) RunAndReturn(run func(context.Context, *lnclient.ConnectPeerRequest) error) *MockLNClient_ConnectPeer_Call
type MockLNClient_DisconnectPeer_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 (_c *MockLNClient_DisconnectPeer_Call) Return(_a0 error) *MockLNClient_DisconnectPeer_Call
func (*MockLNClient_DisconnectPeer_Call) Run ¶
func (_c *MockLNClient_DisconnectPeer_Call) Run(run func(ctx context.Context, peerId string)) *MockLNClient_DisconnectPeer_Call
func (*MockLNClient_DisconnectPeer_Call) RunAndReturn ¶
func (_c *MockLNClient_DisconnectPeer_Call) RunAndReturn(run func(context.Context, string) error) *MockLNClient_DisconnectPeer_Call
type MockLNClient_ExecuteCustomNodeCommand_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 (_c *MockLNClient_ExecuteCustomNodeCommand_Call) Return(_a0 *lnclient.CustomNodeCommandResponse, _a1 error) *MockLNClient_ExecuteCustomNodeCommand_Call
func (*MockLNClient_ExecuteCustomNodeCommand_Call) Run ¶
func (_c *MockLNClient_ExecuteCustomNodeCommand_Call) Run(run func(ctx context.Context, command *lnclient.CustomNodeCommandRequest)) *MockLNClient_ExecuteCustomNodeCommand_Call
func (*MockLNClient_ExecuteCustomNodeCommand_Call) RunAndReturn ¶
func (_c *MockLNClient_ExecuteCustomNodeCommand_Call) RunAndReturn(run func(context.Context, *lnclient.CustomNodeCommandRequest) (*lnclient.CustomNodeCommandResponse, error)) *MockLNClient_ExecuteCustomNodeCommand_Call
type MockLNClient_Expecter ¶
type MockLNClient_Expecter struct {
// contains filtered or unexported fields
}
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 context.Context
- closeChannelRequest *lnclient.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 context.Context
- connectPeerRequest *lnclient.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 context.Context
- peerId string
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 context.Context
- command *lnclient.CustomNodeCommandRequest
func (*MockLNClient_Expecter) GetBalances ¶
func (_e *MockLNClient_Expecter) GetBalances(ctx interface{}) *MockLNClient_GetBalances_Call
GetBalances is a helper method to define mock.On call
- ctx context.Context
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 context.Context
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 context.Context
- maxLen int
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 context.Context
- nodeIds []string
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 context.Context
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 context.Context
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 context.Context
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 context.Context
func (*MockLNClient_Expecter) GetPubkey ¶
func (_e *MockLNClient_Expecter) GetPubkey() *MockLNClient_GetPubkey_Call
GetPubkey is a helper method to define mock.On call
func (*MockLNClient_Expecter) GetStorageDir ¶
func (_e *MockLNClient_Expecter) GetStorageDir() *MockLNClient_GetStorageDir_Call
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 context.Context
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 context.Context
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 context.Context
- from uint64
- until uint64
- limit uint64
- offset uint64
- unpaid bool
- invoiceType string
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 context.Context
- paymentHash string
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 context.Context
- amount int64
- description string
- descriptionHash string
- expiry int64
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 context.Context
- openChannelRequest *lnclient.OpenChannelRequest
func (*MockLNClient_Expecter) RedeemOnchainFunds ¶
func (_e *MockLNClient_Expecter) RedeemOnchainFunds(ctx interface{}, toAddress interface{}, amount interface{}, sendAll interface{}) *MockLNClient_RedeemOnchainFunds_Call
RedeemOnchainFunds is a helper method to define mock.On call
- ctx context.Context
- toAddress string
- amount uint64
- sendAll bool
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 string
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 context.Context
- amount uint64
- destination string
- customRecords []lnclient.TLVRecord
- preimage string
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 context.Context
- invoice string
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 context.Context
- payReq string
- amount *uint64
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 context.Context
- amountMsat uint64
- nodeId string
func (*MockLNClient_Expecter) Shutdown ¶
func (_e *MockLNClient_Expecter) Shutdown() *MockLNClient_Shutdown_Call
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 context.Context
- message string
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 context.Context
- updateChannelRequest *lnclient.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 ¶
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 (_c *MockLNClient_GetBalances_Call) Return(_a0 *lnclient.BalancesResponse, _a1 error) *MockLNClient_GetBalances_Call
func (*MockLNClient_GetBalances_Call) Run ¶
func (_c *MockLNClient_GetBalances_Call) Run(run func(ctx context.Context)) *MockLNClient_GetBalances_Call
func (*MockLNClient_GetBalances_Call) RunAndReturn ¶
func (_c *MockLNClient_GetBalances_Call) RunAndReturn(run func(context.Context) (*lnclient.BalancesResponse, error)) *MockLNClient_GetBalances_Call
type MockLNClient_GetCustomNodeCommandDefinitions_Call ¶
MockLNClient_GetCustomNodeCommandDefinitions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCustomNodeCommandDefinitions'
func (*MockLNClient_GetCustomNodeCommandDefinitions_Call) Run ¶
func (_c *MockLNClient_GetCustomNodeCommandDefinitions_Call) Run(run func()) *MockLNClient_GetCustomNodeCommandDefinitions_Call
func (*MockLNClient_GetCustomNodeCommandDefinitions_Call) RunAndReturn ¶
func (_c *MockLNClient_GetCustomNodeCommandDefinitions_Call) RunAndReturn(run func() []lnclient.CustomNodeCommandDef) *MockLNClient_GetCustomNodeCommandDefinitions_Call
type MockLNClient_GetInfo_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 (_c *MockLNClient_GetInfo_Call) Return(info *lnclient.NodeInfo, err error) *MockLNClient_GetInfo_Call
func (*MockLNClient_GetInfo_Call) Run ¶
func (_c *MockLNClient_GetInfo_Call) Run(run func(ctx context.Context)) *MockLNClient_GetInfo_Call
func (*MockLNClient_GetInfo_Call) RunAndReturn ¶
func (_c *MockLNClient_GetInfo_Call) RunAndReturn(run func(context.Context) (*lnclient.NodeInfo, error)) *MockLNClient_GetInfo_Call
type MockLNClient_GetLogOutput_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 (_c *MockLNClient_GetLogOutput_Call) Return(_a0 []byte, _a1 error) *MockLNClient_GetLogOutput_Call
func (*MockLNClient_GetLogOutput_Call) Run ¶
func (_c *MockLNClient_GetLogOutput_Call) Run(run func(ctx context.Context, maxLen int)) *MockLNClient_GetLogOutput_Call
func (*MockLNClient_GetLogOutput_Call) RunAndReturn ¶
func (_c *MockLNClient_GetLogOutput_Call) RunAndReturn(run func(context.Context, int) ([]byte, error)) *MockLNClient_GetLogOutput_Call
type MockLNClient_GetNetworkGraph_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 (_c *MockLNClient_GetNetworkGraph_Call) Return(_a0 lnclient.NetworkGraphResponse, _a1 error) *MockLNClient_GetNetworkGraph_Call
func (*MockLNClient_GetNetworkGraph_Call) Run ¶
func (_c *MockLNClient_GetNetworkGraph_Call) Run(run func(ctx context.Context, nodeIds []string)) *MockLNClient_GetNetworkGraph_Call
func (*MockLNClient_GetNetworkGraph_Call) RunAndReturn ¶
func (_c *MockLNClient_GetNetworkGraph_Call) RunAndReturn(run func(context.Context, []string) (lnclient.NetworkGraphResponse, error)) *MockLNClient_GetNetworkGraph_Call
type MockLNClient_GetNewOnchainAddress_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 (_c *MockLNClient_GetNewOnchainAddress_Call) Return(_a0 string, _a1 error) *MockLNClient_GetNewOnchainAddress_Call
func (*MockLNClient_GetNewOnchainAddress_Call) Run ¶
func (_c *MockLNClient_GetNewOnchainAddress_Call) Run(run func(ctx context.Context)) *MockLNClient_GetNewOnchainAddress_Call
func (*MockLNClient_GetNewOnchainAddress_Call) RunAndReturn ¶
func (_c *MockLNClient_GetNewOnchainAddress_Call) RunAndReturn(run func(context.Context) (string, error)) *MockLNClient_GetNewOnchainAddress_Call
type MockLNClient_GetNodeConnectionInfo_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 (_c *MockLNClient_GetNodeConnectionInfo_Call) Return(nodeConnectionInfo *lnclient.NodeConnectionInfo, err error) *MockLNClient_GetNodeConnectionInfo_Call
func (*MockLNClient_GetNodeConnectionInfo_Call) Run ¶
func (_c *MockLNClient_GetNodeConnectionInfo_Call) Run(run func(ctx context.Context)) *MockLNClient_GetNodeConnectionInfo_Call
func (*MockLNClient_GetNodeConnectionInfo_Call) RunAndReturn ¶
func (_c *MockLNClient_GetNodeConnectionInfo_Call) RunAndReturn(run func(context.Context) (*lnclient.NodeConnectionInfo, error)) *MockLNClient_GetNodeConnectionInfo_Call
type MockLNClient_GetNodeStatus_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 (_c *MockLNClient_GetNodeStatus_Call) Return(nodeStatus *lnclient.NodeStatus, err error) *MockLNClient_GetNodeStatus_Call
func (*MockLNClient_GetNodeStatus_Call) Run ¶
func (_c *MockLNClient_GetNodeStatus_Call) Run(run func(ctx context.Context)) *MockLNClient_GetNodeStatus_Call
func (*MockLNClient_GetNodeStatus_Call) RunAndReturn ¶
func (_c *MockLNClient_GetNodeStatus_Call) RunAndReturn(run func(context.Context) (*lnclient.NodeStatus, error)) *MockLNClient_GetNodeStatus_Call
type MockLNClient_GetOnchainBalance_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 (_c *MockLNClient_GetOnchainBalance_Call) Return(_a0 *lnclient.OnchainBalanceResponse, _a1 error) *MockLNClient_GetOnchainBalance_Call
func (*MockLNClient_GetOnchainBalance_Call) Run ¶
func (_c *MockLNClient_GetOnchainBalance_Call) Run(run func(ctx context.Context)) *MockLNClient_GetOnchainBalance_Call
func (*MockLNClient_GetOnchainBalance_Call) RunAndReturn ¶
func (_c *MockLNClient_GetOnchainBalance_Call) RunAndReturn(run func(context.Context) (*lnclient.OnchainBalanceResponse, error)) *MockLNClient_GetOnchainBalance_Call
type MockLNClient_GetPubkey_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 (_c *MockLNClient_GetPubkey_Call) Return(_a0 string) *MockLNClient_GetPubkey_Call
func (*MockLNClient_GetPubkey_Call) Run ¶
func (_c *MockLNClient_GetPubkey_Call) Run(run func()) *MockLNClient_GetPubkey_Call
func (*MockLNClient_GetPubkey_Call) RunAndReturn ¶
func (_c *MockLNClient_GetPubkey_Call) RunAndReturn(run func() string) *MockLNClient_GetPubkey_Call
type MockLNClient_GetStorageDir_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 (_c *MockLNClient_GetStorageDir_Call) Return(_a0 string, _a1 error) *MockLNClient_GetStorageDir_Call
func (*MockLNClient_GetStorageDir_Call) Run ¶
func (_c *MockLNClient_GetStorageDir_Call) Run(run func()) *MockLNClient_GetStorageDir_Call
func (*MockLNClient_GetStorageDir_Call) RunAndReturn ¶
func (_c *MockLNClient_GetStorageDir_Call) RunAndReturn(run func() (string, error)) *MockLNClient_GetStorageDir_Call
type MockLNClient_GetSupportedNIP47Methods_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 (_c *MockLNClient_GetSupportedNIP47Methods_Call) Return(_a0 []string) *MockLNClient_GetSupportedNIP47Methods_Call
func (*MockLNClient_GetSupportedNIP47Methods_Call) Run ¶
func (_c *MockLNClient_GetSupportedNIP47Methods_Call) Run(run func()) *MockLNClient_GetSupportedNIP47Methods_Call
func (*MockLNClient_GetSupportedNIP47Methods_Call) RunAndReturn ¶
func (_c *MockLNClient_GetSupportedNIP47Methods_Call) RunAndReturn(run func() []string) *MockLNClient_GetSupportedNIP47Methods_Call
type MockLNClient_GetSupportedNIP47NotificationTypes_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 (_c *MockLNClient_GetSupportedNIP47NotificationTypes_Call) Return(_a0 []string) *MockLNClient_GetSupportedNIP47NotificationTypes_Call
func (*MockLNClient_GetSupportedNIP47NotificationTypes_Call) Run ¶
func (_c *MockLNClient_GetSupportedNIP47NotificationTypes_Call) Run(run func()) *MockLNClient_GetSupportedNIP47NotificationTypes_Call
func (*MockLNClient_GetSupportedNIP47NotificationTypes_Call) RunAndReturn ¶
func (_c *MockLNClient_GetSupportedNIP47NotificationTypes_Call) RunAndReturn(run func() []string) *MockLNClient_GetSupportedNIP47NotificationTypes_Call
type MockLNClient_ListChannels_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 (_c *MockLNClient_ListChannels_Call) Return(channels []lnclient.Channel, err error) *MockLNClient_ListChannels_Call
func (*MockLNClient_ListChannels_Call) Run ¶
func (_c *MockLNClient_ListChannels_Call) Run(run func(ctx context.Context)) *MockLNClient_ListChannels_Call
func (*MockLNClient_ListChannels_Call) RunAndReturn ¶
func (_c *MockLNClient_ListChannels_Call) RunAndReturn(run func(context.Context) ([]lnclient.Channel, error)) *MockLNClient_ListChannels_Call
type MockLNClient_ListPeers_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 (_c *MockLNClient_ListPeers_Call) Return(_a0 []lnclient.PeerDetails, _a1 error) *MockLNClient_ListPeers_Call
func (*MockLNClient_ListPeers_Call) Run ¶
func (_c *MockLNClient_ListPeers_Call) Run(run func(ctx context.Context)) *MockLNClient_ListPeers_Call
func (*MockLNClient_ListPeers_Call) RunAndReturn ¶
func (_c *MockLNClient_ListPeers_Call) RunAndReturn(run func(context.Context) ([]lnclient.PeerDetails, error)) *MockLNClient_ListPeers_Call
type MockLNClient_ListTransactions_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 (_c *MockLNClient_ListTransactions_Call) Return(transactions []lnclient.Transaction, err error) *MockLNClient_ListTransactions_Call
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(context.Context, uint64, uint64, uint64, uint64, bool, string) ([]lnclient.Transaction, error)) *MockLNClient_ListTransactions_Call
type MockLNClient_LookupInvoice_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 (_c *MockLNClient_LookupInvoice_Call) Return(transaction *lnclient.Transaction, err error) *MockLNClient_LookupInvoice_Call
func (*MockLNClient_LookupInvoice_Call) Run ¶
func (_c *MockLNClient_LookupInvoice_Call) Run(run func(ctx context.Context, paymentHash string)) *MockLNClient_LookupInvoice_Call
func (*MockLNClient_LookupInvoice_Call) RunAndReturn ¶
func (_c *MockLNClient_LookupInvoice_Call) RunAndReturn(run func(context.Context, string) (*lnclient.Transaction, error)) *MockLNClient_LookupInvoice_Call
type MockLNClient_MakeInvoice_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 (_c *MockLNClient_MakeInvoice_Call) Return(transaction *lnclient.Transaction, err error) *MockLNClient_MakeInvoice_Call
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(context.Context, int64, string, string, int64) (*lnclient.Transaction, error)) *MockLNClient_MakeInvoice_Call
type MockLNClient_OpenChannel_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 (_c *MockLNClient_OpenChannel_Call) Return(_a0 *lnclient.OpenChannelResponse, _a1 error) *MockLNClient_OpenChannel_Call
func (*MockLNClient_OpenChannel_Call) Run ¶
func (_c *MockLNClient_OpenChannel_Call) Run(run func(ctx context.Context, openChannelRequest *lnclient.OpenChannelRequest)) *MockLNClient_OpenChannel_Call
func (*MockLNClient_OpenChannel_Call) RunAndReturn ¶
func (_c *MockLNClient_OpenChannel_Call) RunAndReturn(run func(context.Context, *lnclient.OpenChannelRequest) (*lnclient.OpenChannelResponse, error)) *MockLNClient_OpenChannel_Call
type MockLNClient_RedeemOnchainFunds_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 (_c *MockLNClient_RedeemOnchainFunds_Call) Return(txId string, err error) *MockLNClient_RedeemOnchainFunds_Call
func (*MockLNClient_RedeemOnchainFunds_Call) Run ¶
func (_c *MockLNClient_RedeemOnchainFunds_Call) Run(run func(ctx context.Context, toAddress string, amount uint64, sendAll bool)) *MockLNClient_RedeemOnchainFunds_Call
func (*MockLNClient_RedeemOnchainFunds_Call) RunAndReturn ¶
func (_c *MockLNClient_RedeemOnchainFunds_Call) RunAndReturn(run func(context.Context, string, uint64, bool) (string, error)) *MockLNClient_RedeemOnchainFunds_Call
type MockLNClient_ResetRouter_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 (_c *MockLNClient_ResetRouter_Call) Return(_a0 error) *MockLNClient_ResetRouter_Call
func (*MockLNClient_ResetRouter_Call) Run ¶
func (_c *MockLNClient_ResetRouter_Call) Run(run func(key string)) *MockLNClient_ResetRouter_Call
func (*MockLNClient_ResetRouter_Call) RunAndReturn ¶
func (_c *MockLNClient_ResetRouter_Call) RunAndReturn(run func(string) error) *MockLNClient_ResetRouter_Call
type MockLNClient_SendKeysend_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 (_c *MockLNClient_SendKeysend_Call) Return(_a0 *lnclient.PayKeysendResponse, _a1 error) *MockLNClient_SendKeysend_Call
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(context.Context, uint64, string, []lnclient.TLVRecord, string) (*lnclient.PayKeysendResponse, error)) *MockLNClient_SendKeysend_Call
type MockLNClient_SendPaymentProbes_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 (_c *MockLNClient_SendPaymentProbes_Call) Return(_a0 error) *MockLNClient_SendPaymentProbes_Call
func (*MockLNClient_SendPaymentProbes_Call) Run ¶
func (_c *MockLNClient_SendPaymentProbes_Call) Run(run func(ctx context.Context, invoice string)) *MockLNClient_SendPaymentProbes_Call
func (*MockLNClient_SendPaymentProbes_Call) RunAndReturn ¶
func (_c *MockLNClient_SendPaymentProbes_Call) RunAndReturn(run func(context.Context, string) error) *MockLNClient_SendPaymentProbes_Call
type MockLNClient_SendPaymentSync_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 (_c *MockLNClient_SendPaymentSync_Call) Return(_a0 *lnclient.PayInvoiceResponse, _a1 error) *MockLNClient_SendPaymentSync_Call
func (*MockLNClient_SendPaymentSync_Call) Run ¶
func (_c *MockLNClient_SendPaymentSync_Call) Run(run func(ctx context.Context, payReq string, amount *uint64)) *MockLNClient_SendPaymentSync_Call
func (*MockLNClient_SendPaymentSync_Call) RunAndReturn ¶
func (_c *MockLNClient_SendPaymentSync_Call) RunAndReturn(run func(context.Context, string, *uint64) (*lnclient.PayInvoiceResponse, error)) *MockLNClient_SendPaymentSync_Call
type MockLNClient_SendSpontaneousPaymentProbes_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 (_c *MockLNClient_SendSpontaneousPaymentProbes_Call) Return(_a0 error) *MockLNClient_SendSpontaneousPaymentProbes_Call
func (*MockLNClient_SendSpontaneousPaymentProbes_Call) Run ¶
func (_c *MockLNClient_SendSpontaneousPaymentProbes_Call) Run(run func(ctx context.Context, amountMsat uint64, nodeId string)) *MockLNClient_SendSpontaneousPaymentProbes_Call
func (*MockLNClient_SendSpontaneousPaymentProbes_Call) RunAndReturn ¶
func (_c *MockLNClient_SendSpontaneousPaymentProbes_Call) RunAndReturn(run func(context.Context, uint64, string) error) *MockLNClient_SendSpontaneousPaymentProbes_Call
type MockLNClient_Shutdown_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 (_c *MockLNClient_Shutdown_Call) Return(_a0 error) *MockLNClient_Shutdown_Call
func (*MockLNClient_Shutdown_Call) Run ¶
func (_c *MockLNClient_Shutdown_Call) Run(run func()) *MockLNClient_Shutdown_Call
func (*MockLNClient_Shutdown_Call) RunAndReturn ¶
func (_c *MockLNClient_Shutdown_Call) RunAndReturn(run func() error) *MockLNClient_Shutdown_Call
type MockLNClient_SignMessage_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 (_c *MockLNClient_SignMessage_Call) Return(_a0 string, _a1 error) *MockLNClient_SignMessage_Call
func (*MockLNClient_SignMessage_Call) Run ¶
func (_c *MockLNClient_SignMessage_Call) Run(run func(ctx context.Context, message string)) *MockLNClient_SignMessage_Call
func (*MockLNClient_SignMessage_Call) RunAndReturn ¶
func (_c *MockLNClient_SignMessage_Call) RunAndReturn(run func(context.Context, string) (string, error)) *MockLNClient_SignMessage_Call
type MockLNClient_UpdateChannel_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 (_c *MockLNClient_UpdateChannel_Call) Return(_a0 error) *MockLNClient_UpdateChannel_Call
func (*MockLNClient_UpdateChannel_Call) Run ¶
func (_c *MockLNClient_UpdateChannel_Call) Run(run func(ctx context.Context, updateChannelRequest *lnclient.UpdateChannelRequest)) *MockLNClient_UpdateChannel_Call
func (*MockLNClient_UpdateChannel_Call) RunAndReturn ¶
func (_c *MockLNClient_UpdateChannel_Call) RunAndReturn(run func(context.Context, *lnclient.UpdateChannelRequest) error) *MockLNClient_UpdateChannel_Call
type MockLNClient_UpdateLastWalletSyncRequest_Call ¶
MockLNClient_UpdateLastWalletSyncRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateLastWalletSyncRequest'
func (*MockLNClient_UpdateLastWalletSyncRequest_Call) Run ¶
func (_c *MockLNClient_UpdateLastWalletSyncRequest_Call) Run(run func()) *MockLNClient_UpdateLastWalletSyncRequest_Call
func (*MockLNClient_UpdateLastWalletSyncRequest_Call) RunAndReturn ¶
func (_c *MockLNClient_UpdateLastWalletSyncRequest_Call) RunAndReturn(run func()) *MockLNClient_UpdateLastWalletSyncRequest_Call
type MockService ¶
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 (_m *MockService) GetAlbyOAuthSvc() alby.AlbyOAuthService
GetAlbyOAuthSvc provides a mock function with no fields
func (*MockService) GetConfig ¶
func (_m *MockService) GetConfig() config.Config
GetConfig provides a mock function with no fields
func (*MockService) GetDB ¶
func (_m *MockService) GetDB() *gorm.DB
GetDB provides a mock function with no fields
func (*MockService) GetEventPublisher ¶
func (_m *MockService) GetEventPublisher() events.EventPublisher
GetEventPublisher provides a mock function with no fields
func (*MockService) GetKeys ¶
func (_m *MockService) GetKeys() keys.Keys
GetKeys provides a mock function with no fields
func (*MockService) GetLNClient ¶
func (_m *MockService) GetLNClient() lnclient.LNClient
GetLNClient provides a mock function with no fields
func (*MockService) GetStartupState ¶ added in v1.14.1
func (_m *MockService) GetStartupState() string
GetStartupState provides a mock function with no fields
func (*MockService) GetTransactionsService ¶
func (_m *MockService) GetTransactionsService() transactions.TransactionsService
GetTransactionsService provides a mock function with no fields
func (*MockService) IsRelayReady ¶
func (_m *MockService) IsRelayReady() bool
IsRelayReady provides a mock function with no fields
func (*MockService) Shutdown ¶
func (_m *MockService) Shutdown()
Shutdown provides a mock function with no fields
func (*MockService) StartApp ¶
func (_m *MockService) StartApp(encryptionKey string) error
StartApp provides a mock function with given fields: encryptionKey
func (*MockService) StopApp ¶
func (_m *MockService) StopApp()
StopApp provides a mock function with no fields
type MockService_Expecter ¶
type MockService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockService_Expecter) GetAlbyOAuthSvc ¶
func (_e *MockService_Expecter) GetAlbyOAuthSvc() *MockService_GetAlbyOAuthSvc_Call
GetAlbyOAuthSvc is a helper method to define mock.On call
func (*MockService_Expecter) GetConfig ¶
func (_e *MockService_Expecter) GetConfig() *MockService_GetConfig_Call
GetConfig is a helper method to define mock.On call
func (*MockService_Expecter) GetDB ¶
func (_e *MockService_Expecter) GetDB() *MockService_GetDB_Call
GetDB is a helper method to define mock.On call
func (*MockService_Expecter) GetEventPublisher ¶
func (_e *MockService_Expecter) GetEventPublisher() *MockService_GetEventPublisher_Call
GetEventPublisher is a helper method to define mock.On call
func (*MockService_Expecter) GetKeys ¶
func (_e *MockService_Expecter) GetKeys() *MockService_GetKeys_Call
GetKeys is a helper method to define mock.On call
func (*MockService_Expecter) GetLNClient ¶
func (_e *MockService_Expecter) GetLNClient() *MockService_GetLNClient_Call
GetLNClient is a helper method to define mock.On call
func (*MockService_Expecter) GetStartupState ¶ added in v1.14.1
func (_e *MockService_Expecter) GetStartupState() *MockService_GetStartupState_Call
GetStartupState 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 ¶
func (_e *MockService_Expecter) IsRelayReady() *MockService_IsRelayReady_Call
IsRelayReady is a helper method to define mock.On call
func (*MockService_Expecter) Shutdown ¶
func (_e *MockService_Expecter) Shutdown() *MockService_Shutdown_Call
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 string
func (*MockService_Expecter) StopApp ¶
func (_e *MockService_Expecter) StopApp() *MockService_StopApp_Call
StopApp is a helper method to define mock.On call
type MockService_GetAlbyOAuthSvc_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 (_c *MockService_GetAlbyOAuthSvc_Call) Return(_a0 alby.AlbyOAuthService) *MockService_GetAlbyOAuthSvc_Call
func (*MockService_GetAlbyOAuthSvc_Call) Run ¶
func (_c *MockService_GetAlbyOAuthSvc_Call) Run(run func()) *MockService_GetAlbyOAuthSvc_Call
func (*MockService_GetAlbyOAuthSvc_Call) RunAndReturn ¶
func (_c *MockService_GetAlbyOAuthSvc_Call) RunAndReturn(run func() alby.AlbyOAuthService) *MockService_GetAlbyOAuthSvc_Call
type MockService_GetConfig_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 (_c *MockService_GetConfig_Call) Return(_a0 config.Config) *MockService_GetConfig_Call
func (*MockService_GetConfig_Call) Run ¶
func (_c *MockService_GetConfig_Call) Run(run func()) *MockService_GetConfig_Call
func (*MockService_GetConfig_Call) RunAndReturn ¶
func (_c *MockService_GetConfig_Call) RunAndReturn(run func() config.Config) *MockService_GetConfig_Call
type MockService_GetDB_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 (_c *MockService_GetDB_Call) Return(_a0 *gorm.DB) *MockService_GetDB_Call
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 ¶
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 (_c *MockService_GetEventPublisher_Call) Return(_a0 events.EventPublisher) *MockService_GetEventPublisher_Call
func (*MockService_GetEventPublisher_Call) Run ¶
func (_c *MockService_GetEventPublisher_Call) Run(run func()) *MockService_GetEventPublisher_Call
func (*MockService_GetEventPublisher_Call) RunAndReturn ¶
func (_c *MockService_GetEventPublisher_Call) RunAndReturn(run func() events.EventPublisher) *MockService_GetEventPublisher_Call
type MockService_GetKeys_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 (_c *MockService_GetKeys_Call) Return(_a0 keys.Keys) *MockService_GetKeys_Call
func (*MockService_GetKeys_Call) Run ¶
func (_c *MockService_GetKeys_Call) Run(run func()) *MockService_GetKeys_Call
func (*MockService_GetKeys_Call) RunAndReturn ¶
func (_c *MockService_GetKeys_Call) RunAndReturn(run func() keys.Keys) *MockService_GetKeys_Call
type MockService_GetLNClient_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 (_c *MockService_GetLNClient_Call) Return(_a0 lnclient.LNClient) *MockService_GetLNClient_Call
func (*MockService_GetLNClient_Call) Run ¶
func (_c *MockService_GetLNClient_Call) Run(run func()) *MockService_GetLNClient_Call
func (*MockService_GetLNClient_Call) RunAndReturn ¶
func (_c *MockService_GetLNClient_Call) RunAndReturn(run func() lnclient.LNClient) *MockService_GetLNClient_Call
type MockService_GetStartupState_Call ¶ added in v1.14.1
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 (_c *MockService_GetStartupState_Call) Return(_a0 string) *MockService_GetStartupState_Call
func (*MockService_GetStartupState_Call) Run ¶ added in v1.14.1
func (_c *MockService_GetStartupState_Call) Run(run func()) *MockService_GetStartupState_Call
func (*MockService_GetStartupState_Call) RunAndReturn ¶ added in v1.14.1
func (_c *MockService_GetStartupState_Call) RunAndReturn(run func() string) *MockService_GetStartupState_Call
type MockService_GetTransactionsService_Call ¶
MockService_GetTransactionsService_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTransactionsService'
func (*MockService_GetTransactionsService_Call) Run ¶
func (_c *MockService_GetTransactionsService_Call) Run(run func()) *MockService_GetTransactionsService_Call
func (*MockService_GetTransactionsService_Call) RunAndReturn ¶
func (_c *MockService_GetTransactionsService_Call) RunAndReturn(run func() transactions.TransactionsService) *MockService_GetTransactionsService_Call
type MockService_IsRelayReady_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 (_c *MockService_IsRelayReady_Call) Return(_a0 bool) *MockService_IsRelayReady_Call
func (*MockService_IsRelayReady_Call) Run ¶
func (_c *MockService_IsRelayReady_Call) Run(run func()) *MockService_IsRelayReady_Call
func (*MockService_IsRelayReady_Call) RunAndReturn ¶
func (_c *MockService_IsRelayReady_Call) RunAndReturn(run func() bool) *MockService_IsRelayReady_Call
type MockService_Shutdown_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 (_c *MockService_Shutdown_Call) Return() *MockService_Shutdown_Call
func (*MockService_Shutdown_Call) Run ¶
func (_c *MockService_Shutdown_Call) Run(run func()) *MockService_Shutdown_Call
func (*MockService_Shutdown_Call) RunAndReturn ¶
func (_c *MockService_Shutdown_Call) RunAndReturn(run func()) *MockService_Shutdown_Call
type MockService_StartApp_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 (_c *MockService_StartApp_Call) Return(_a0 error) *MockService_StartApp_Call
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(string) error) *MockService_StartApp_Call
type MockService_StopApp_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 (_c *MockService_StopApp_Call) Return() *MockService_StopApp_Call
func (*MockService_StopApp_Call) Run ¶
func (_c *MockService_StopApp_Call) Run(run func()) *MockService_StopApp_Call
func (*MockService_StopApp_Call) RunAndReturn ¶
func (_c *MockService_StopApp_Call) RunAndReturn(run func()) *MockService_StopApp_Call