Documentation
¶
Index ¶
- type MockAlbyOAuthService
- func (_mock *MockAlbyOAuthService) CallbackHandler(ctx context.Context, code string, lnClient lnclient.LNClient) error
- func (_mock *MockAlbyOAuthService) ConsumeEvent(ctx context.Context, event *events.Event, ...)
- func (_mock *MockAlbyOAuthService) CreateLSPOrder(ctx context.Context, lsp string, network string, ...) (*alby.LSPChannelResponse, error)
- func (_mock *MockAlbyOAuthService) CreateLightningAddress(ctx context.Context, address string, appId uint) (*alby.CreateLightningAddressResponse, error)
- func (_mock *MockAlbyOAuthService) DeleteLightningAddress(ctx context.Context, address string) error
- func (_m *MockAlbyOAuthService) EXPECT() *MockAlbyOAuthService_Expecter
- func (_mock *MockAlbyOAuthService) GetAuthUrl() string
- func (_mock *MockAlbyOAuthService) GetLSPChannelOffer(ctx context.Context) (*alby.LSPChannelOffer, error)
- func (_mock *MockAlbyOAuthService) GetLSPInfo(ctx context.Context, lsp string, network string) (*alby.LSPInfo, error)
- func (_mock *MockAlbyOAuthService) GetLightningAddress() (string, error)
- func (_mock *MockAlbyOAuthService) GetMe(ctx context.Context) (*alby.AlbyMe, error)
- func (_mock *MockAlbyOAuthService) GetUserIdentifier() (string, error)
- func (_mock *MockAlbyOAuthService) GetVssAuthToken(ctx context.Context, nodeIdentifier string) (string, error)
- func (_mock *MockAlbyOAuthService) IsConnected(ctx context.Context) bool
- func (_mock *MockAlbyOAuthService) LinkAccount(ctx context.Context, lnClient lnclient.LNClient, budget uint64, renewal string) error
- func (_mock *MockAlbyOAuthService) RemoveOAuthAccessToken() error
- func (_mock *MockAlbyOAuthService) RequestAutoChannel(ctx context.Context, lnClient lnclient.LNClient, isPublic bool) (*alby.AutoChannelResponse, error)
- func (_mock *MockAlbyOAuthService) UnlinkAccount(ctx context.Context) error
- type MockAlbyOAuthService_CallbackHandler_Call
- func (_c *MockAlbyOAuthService_CallbackHandler_Call) Return(err error) *MockAlbyOAuthService_CallbackHandler_Call
- func (_c *MockAlbyOAuthService_CallbackHandler_Call) Run(run func(ctx context.Context, code string, lnClient lnclient.LNClient)) *MockAlbyOAuthService_CallbackHandler_Call
- func (_c *MockAlbyOAuthService_CallbackHandler_Call) RunAndReturn(run func(ctx context.Context, code string, lnClient lnclient.LNClient) error) *MockAlbyOAuthService_CallbackHandler_Call
- type MockAlbyOAuthService_ConsumeEvent_Call
- func (_c *MockAlbyOAuthService_ConsumeEvent_Call) Return() *MockAlbyOAuthService_ConsumeEvent_Call
- func (_c *MockAlbyOAuthService_ConsumeEvent_Call) Run(run func(ctx context.Context, event *events.Event, ...)) *MockAlbyOAuthService_ConsumeEvent_Call
- func (_c *MockAlbyOAuthService_ConsumeEvent_Call) RunAndReturn(run func(ctx context.Context, event *events.Event, ...)) *MockAlbyOAuthService_ConsumeEvent_Call
- type MockAlbyOAuthService_CreateLSPOrder_Call
- func (_c *MockAlbyOAuthService_CreateLSPOrder_Call) Return(lSPChannelResponse *alby.LSPChannelResponse, err error) *MockAlbyOAuthService_CreateLSPOrder_Call
- func (_c *MockAlbyOAuthService_CreateLSPOrder_Call) Run(run func(ctx context.Context, lsp string, network string, ...)) *MockAlbyOAuthService_CreateLSPOrder_Call
- func (_c *MockAlbyOAuthService_CreateLSPOrder_Call) RunAndReturn(...) *MockAlbyOAuthService_CreateLSPOrder_Call
- type MockAlbyOAuthService_CreateLightningAddress_Call
- func (_c *MockAlbyOAuthService_CreateLightningAddress_Call) Return(createLightningAddressResponse *alby.CreateLightningAddressResponse, err error) *MockAlbyOAuthService_CreateLightningAddress_Call
- func (_c *MockAlbyOAuthService_CreateLightningAddress_Call) Run(run func(ctx context.Context, address string, appId uint)) *MockAlbyOAuthService_CreateLightningAddress_Call
- func (_c *MockAlbyOAuthService_CreateLightningAddress_Call) RunAndReturn(...) *MockAlbyOAuthService_CreateLightningAddress_Call
- type MockAlbyOAuthService_DeleteLightningAddress_Call
- func (_c *MockAlbyOAuthService_DeleteLightningAddress_Call) Return(err error) *MockAlbyOAuthService_DeleteLightningAddress_Call
- func (_c *MockAlbyOAuthService_DeleteLightningAddress_Call) Run(run func(ctx context.Context, address string)) *MockAlbyOAuthService_DeleteLightningAddress_Call
- func (_c *MockAlbyOAuthService_DeleteLightningAddress_Call) RunAndReturn(run func(ctx context.Context, address string) error) *MockAlbyOAuthService_DeleteLightningAddress_Call
- type MockAlbyOAuthService_Expecter
- func (_e *MockAlbyOAuthService_Expecter) CallbackHandler(ctx interface{}, code interface{}, lnClient interface{}) *MockAlbyOAuthService_CallbackHandler_Call
- func (_e *MockAlbyOAuthService_Expecter) ConsumeEvent(ctx interface{}, event interface{}, globalProperties interface{}) *MockAlbyOAuthService_ConsumeEvent_Call
- func (_e *MockAlbyOAuthService_Expecter) CreateLSPOrder(ctx interface{}, lsp interface{}, network interface{}, ...) *MockAlbyOAuthService_CreateLSPOrder_Call
- func (_e *MockAlbyOAuthService_Expecter) CreateLightningAddress(ctx interface{}, address interface{}, appId interface{}) *MockAlbyOAuthService_CreateLightningAddress_Call
- func (_e *MockAlbyOAuthService_Expecter) DeleteLightningAddress(ctx interface{}, address interface{}) *MockAlbyOAuthService_DeleteLightningAddress_Call
- func (_e *MockAlbyOAuthService_Expecter) GetAuthUrl() *MockAlbyOAuthService_GetAuthUrl_Call
- func (_e *MockAlbyOAuthService_Expecter) GetLSPChannelOffer(ctx interface{}) *MockAlbyOAuthService_GetLSPChannelOffer_Call
- func (_e *MockAlbyOAuthService_Expecter) GetLSPInfo(ctx interface{}, lsp interface{}, network interface{}) *MockAlbyOAuthService_GetLSPInfo_Call
- func (_e *MockAlbyOAuthService_Expecter) GetLightningAddress() *MockAlbyOAuthService_GetLightningAddress_Call
- func (_e *MockAlbyOAuthService_Expecter) GetMe(ctx interface{}) *MockAlbyOAuthService_GetMe_Call
- func (_e *MockAlbyOAuthService_Expecter) GetUserIdentifier() *MockAlbyOAuthService_GetUserIdentifier_Call
- func (_e *MockAlbyOAuthService_Expecter) GetVssAuthToken(ctx interface{}, nodeIdentifier interface{}) *MockAlbyOAuthService_GetVssAuthToken_Call
- func (_e *MockAlbyOAuthService_Expecter) IsConnected(ctx interface{}) *MockAlbyOAuthService_IsConnected_Call
- func (_e *MockAlbyOAuthService_Expecter) LinkAccount(ctx interface{}, lnClient interface{}, budget interface{}, renewal interface{}) *MockAlbyOAuthService_LinkAccount_Call
- func (_e *MockAlbyOAuthService_Expecter) RemoveOAuthAccessToken() *MockAlbyOAuthService_RemoveOAuthAccessToken_Call
- func (_e *MockAlbyOAuthService_Expecter) RequestAutoChannel(ctx interface{}, lnClient interface{}, isPublic interface{}) *MockAlbyOAuthService_RequestAutoChannel_Call
- func (_e *MockAlbyOAuthService_Expecter) UnlinkAccount(ctx interface{}) *MockAlbyOAuthService_UnlinkAccount_Call
- type MockAlbyOAuthService_GetAuthUrl_Call
- func (_c *MockAlbyOAuthService_GetAuthUrl_Call) Return(s string) *MockAlbyOAuthService_GetAuthUrl_Call
- func (_c *MockAlbyOAuthService_GetAuthUrl_Call) Run(run func()) *MockAlbyOAuthService_GetAuthUrl_Call
- func (_c *MockAlbyOAuthService_GetAuthUrl_Call) RunAndReturn(run func() string) *MockAlbyOAuthService_GetAuthUrl_Call
- type MockAlbyOAuthService_GetLSPChannelOffer_Call
- func (_c *MockAlbyOAuthService_GetLSPChannelOffer_Call) Return(lSPChannelOffer *alby.LSPChannelOffer, err error) *MockAlbyOAuthService_GetLSPChannelOffer_Call
- func (_c *MockAlbyOAuthService_GetLSPChannelOffer_Call) Run(run func(ctx context.Context)) *MockAlbyOAuthService_GetLSPChannelOffer_Call
- func (_c *MockAlbyOAuthService_GetLSPChannelOffer_Call) RunAndReturn(run func(ctx context.Context) (*alby.LSPChannelOffer, error)) *MockAlbyOAuthService_GetLSPChannelOffer_Call
- type MockAlbyOAuthService_GetLSPInfo_Call
- func (_c *MockAlbyOAuthService_GetLSPInfo_Call) Return(lSPInfo *alby.LSPInfo, err error) *MockAlbyOAuthService_GetLSPInfo_Call
- func (_c *MockAlbyOAuthService_GetLSPInfo_Call) Run(run func(ctx context.Context, lsp string, network string)) *MockAlbyOAuthService_GetLSPInfo_Call
- func (_c *MockAlbyOAuthService_GetLSPInfo_Call) RunAndReturn(...) *MockAlbyOAuthService_GetLSPInfo_Call
- type MockAlbyOAuthService_GetLightningAddress_Call
- func (_c *MockAlbyOAuthService_GetLightningAddress_Call) Return(s string, err error) *MockAlbyOAuthService_GetLightningAddress_Call
- func (_c *MockAlbyOAuthService_GetLightningAddress_Call) Run(run func()) *MockAlbyOAuthService_GetLightningAddress_Call
- func (_c *MockAlbyOAuthService_GetLightningAddress_Call) RunAndReturn(run func() (string, error)) *MockAlbyOAuthService_GetLightningAddress_Call
- type MockAlbyOAuthService_GetMe_Call
- func (_c *MockAlbyOAuthService_GetMe_Call) Return(albyMe *alby.AlbyMe, err error) *MockAlbyOAuthService_GetMe_Call
- func (_c *MockAlbyOAuthService_GetMe_Call) Run(run func(ctx context.Context)) *MockAlbyOAuthService_GetMe_Call
- func (_c *MockAlbyOAuthService_GetMe_Call) RunAndReturn(run func(ctx context.Context) (*alby.AlbyMe, error)) *MockAlbyOAuthService_GetMe_Call
- type MockAlbyOAuthService_GetUserIdentifier_Call
- func (_c *MockAlbyOAuthService_GetUserIdentifier_Call) Return(s string, err error) *MockAlbyOAuthService_GetUserIdentifier_Call
- func (_c *MockAlbyOAuthService_GetUserIdentifier_Call) Run(run func()) *MockAlbyOAuthService_GetUserIdentifier_Call
- func (_c *MockAlbyOAuthService_GetUserIdentifier_Call) RunAndReturn(run func() (string, error)) *MockAlbyOAuthService_GetUserIdentifier_Call
- type MockAlbyOAuthService_GetVssAuthToken_Call
- func (_c *MockAlbyOAuthService_GetVssAuthToken_Call) Return(s string, err error) *MockAlbyOAuthService_GetVssAuthToken_Call
- func (_c *MockAlbyOAuthService_GetVssAuthToken_Call) Run(run func(ctx context.Context, nodeIdentifier string)) *MockAlbyOAuthService_GetVssAuthToken_Call
- func (_c *MockAlbyOAuthService_GetVssAuthToken_Call) RunAndReturn(run func(ctx context.Context, nodeIdentifier string) (string, error)) *MockAlbyOAuthService_GetVssAuthToken_Call
- type MockAlbyOAuthService_IsConnected_Call
- func (_c *MockAlbyOAuthService_IsConnected_Call) Return(b bool) *MockAlbyOAuthService_IsConnected_Call
- func (_c *MockAlbyOAuthService_IsConnected_Call) Run(run func(ctx context.Context)) *MockAlbyOAuthService_IsConnected_Call
- func (_c *MockAlbyOAuthService_IsConnected_Call) RunAndReturn(run func(ctx context.Context) bool) *MockAlbyOAuthService_IsConnected_Call
- type MockAlbyOAuthService_LinkAccount_Call
- func (_c *MockAlbyOAuthService_LinkAccount_Call) Return(err error) *MockAlbyOAuthService_LinkAccount_Call
- func (_c *MockAlbyOAuthService_LinkAccount_Call) Run(...) *MockAlbyOAuthService_LinkAccount_Call
- func (_c *MockAlbyOAuthService_LinkAccount_Call) RunAndReturn(...) *MockAlbyOAuthService_LinkAccount_Call
- type MockAlbyOAuthService_RemoveOAuthAccessToken_Call
- func (_c *MockAlbyOAuthService_RemoveOAuthAccessToken_Call) Return(err error) *MockAlbyOAuthService_RemoveOAuthAccessToken_Call
- func (_c *MockAlbyOAuthService_RemoveOAuthAccessToken_Call) Run(run func()) *MockAlbyOAuthService_RemoveOAuthAccessToken_Call
- func (_c *MockAlbyOAuthService_RemoveOAuthAccessToken_Call) RunAndReturn(run func() error) *MockAlbyOAuthService_RemoveOAuthAccessToken_Call
- type MockAlbyOAuthService_RequestAutoChannel_Call
- func (_c *MockAlbyOAuthService_RequestAutoChannel_Call) Return(autoChannelResponse *alby.AutoChannelResponse, err error) *MockAlbyOAuthService_RequestAutoChannel_Call
- func (_c *MockAlbyOAuthService_RequestAutoChannel_Call) Run(run func(ctx context.Context, lnClient lnclient.LNClient, isPublic bool)) *MockAlbyOAuthService_RequestAutoChannel_Call
- func (_c *MockAlbyOAuthService_RequestAutoChannel_Call) RunAndReturn(...) *MockAlbyOAuthService_RequestAutoChannel_Call
- type MockAlbyOAuthService_UnlinkAccount_Call
- func (_c *MockAlbyOAuthService_UnlinkAccount_Call) Return(err error) *MockAlbyOAuthService_UnlinkAccount_Call
- func (_c *MockAlbyOAuthService_UnlinkAccount_Call) Run(run func(ctx context.Context)) *MockAlbyOAuthService_UnlinkAccount_Call
- func (_c *MockAlbyOAuthService_UnlinkAccount_Call) RunAndReturn(run func(ctx context.Context) error) *MockAlbyOAuthService_UnlinkAccount_Call
- type MockAlbyService
- func (_m *MockAlbyService) EXPECT() *MockAlbyService_Expecter
- func (_mock *MockAlbyService) GetBitcoinRate(ctx context.Context) (*alby.BitcoinRate, error)
- func (_mock *MockAlbyService) GetChannelPeerSuggestions(ctx context.Context) ([]alby.ChannelPeerSuggestion, error)
- func (_mock *MockAlbyService) GetInfo(ctx context.Context) (*alby.AlbyInfo, error)
- type MockAlbyService_Expecter
- func (_e *MockAlbyService_Expecter) GetBitcoinRate(ctx interface{}) *MockAlbyService_GetBitcoinRate_Call
- func (_e *MockAlbyService_Expecter) GetChannelPeerSuggestions(ctx interface{}) *MockAlbyService_GetChannelPeerSuggestions_Call
- func (_e *MockAlbyService_Expecter) GetInfo(ctx interface{}) *MockAlbyService_GetInfo_Call
- type MockAlbyService_GetBitcoinRate_Call
- func (_c *MockAlbyService_GetBitcoinRate_Call) Return(bitcoinRate *alby.BitcoinRate, err error) *MockAlbyService_GetBitcoinRate_Call
- func (_c *MockAlbyService_GetBitcoinRate_Call) Run(run func(ctx context.Context)) *MockAlbyService_GetBitcoinRate_Call
- func (_c *MockAlbyService_GetBitcoinRate_Call) RunAndReturn(run func(ctx context.Context) (*alby.BitcoinRate, error)) *MockAlbyService_GetBitcoinRate_Call
- type MockAlbyService_GetChannelPeerSuggestions_Call
- func (_c *MockAlbyService_GetChannelPeerSuggestions_Call) Return(channelPeerSuggestions []alby.ChannelPeerSuggestion, err error) *MockAlbyService_GetChannelPeerSuggestions_Call
- func (_c *MockAlbyService_GetChannelPeerSuggestions_Call) Run(run func(ctx context.Context)) *MockAlbyService_GetChannelPeerSuggestions_Call
- func (_c *MockAlbyService_GetChannelPeerSuggestions_Call) RunAndReturn(run func(ctx context.Context) ([]alby.ChannelPeerSuggestion, error)) *MockAlbyService_GetChannelPeerSuggestions_Call
- type MockAlbyService_GetInfo_Call
- func (_c *MockAlbyService_GetInfo_Call) Return(albyInfo *alby.AlbyInfo, err error) *MockAlbyService_GetInfo_Call
- func (_c *MockAlbyService_GetInfo_Call) Run(run func(ctx context.Context)) *MockAlbyService_GetInfo_Call
- func (_c *MockAlbyService_GetInfo_Call) RunAndReturn(run func(ctx context.Context) (*alby.AlbyInfo, error)) *MockAlbyService_GetInfo_Call
- type MockConfig
- func (_mock *MockConfig) ChangeUnlockPassword(currentUnlockPassword string, newUnlockPassword string) error
- func (_mock *MockConfig) CheckUnlockPassword(password string) bool
- func (_m *MockConfig) EXPECT() *MockConfig_Expecter
- func (_mock *MockConfig) Get(key string, encryptionKey string) (string, error)
- func (_mock *MockConfig) GetBitcoinDisplayFormat() string
- func (_mock *MockConfig) GetCurrency() string
- func (_mock *MockConfig) GetEnv() *config.AppConfig
- func (_mock *MockConfig) GetJWTSecret() (string, error)
- func (_mock *MockConfig) GetMempoolUrl() string
- func (_mock *MockConfig) GetNetwork() string
- func (_mock *MockConfig) GetRelayUrls() []string
- func (_mock *MockConfig) SaveUnlockPasswordCheck(encryptionKey string) error
- func (_mock *MockConfig) SetAutoUnlockPassword(unlockPassword string) error
- func (_mock *MockConfig) SetBitcoinDisplayFormat(value string) error
- func (_mock *MockConfig) SetCurrency(value string) error
- func (_mock *MockConfig) SetIgnore(key string, value string, encryptionKey string) error
- func (_mock *MockConfig) SetUpdate(key string, value string, encryptionKey string) error
- func (_mock *MockConfig) SetupCompleted() bool
- func (_mock *MockConfig) Unlock(encryptionKey string) error
- type MockConfig_ChangeUnlockPassword_Call
- func (_c *MockConfig_ChangeUnlockPassword_Call) Return(err error) *MockConfig_ChangeUnlockPassword_Call
- func (_c *MockConfig_ChangeUnlockPassword_Call) Run(run func(currentUnlockPassword string, newUnlockPassword string)) *MockConfig_ChangeUnlockPassword_Call
- func (_c *MockConfig_ChangeUnlockPassword_Call) RunAndReturn(run func(currentUnlockPassword string, newUnlockPassword string) error) *MockConfig_ChangeUnlockPassword_Call
- type MockConfig_CheckUnlockPassword_Call
- func (_c *MockConfig_CheckUnlockPassword_Call) Return(b bool) *MockConfig_CheckUnlockPassword_Call
- func (_c *MockConfig_CheckUnlockPassword_Call) Run(run func(password string)) *MockConfig_CheckUnlockPassword_Call
- func (_c *MockConfig_CheckUnlockPassword_Call) RunAndReturn(run func(password string) bool) *MockConfig_CheckUnlockPassword_Call
- type MockConfig_Expecter
- func (_e *MockConfig_Expecter) ChangeUnlockPassword(currentUnlockPassword interface{}, newUnlockPassword interface{}) *MockConfig_ChangeUnlockPassword_Call
- func (_e *MockConfig_Expecter) CheckUnlockPassword(password interface{}) *MockConfig_CheckUnlockPassword_Call
- func (_e *MockConfig_Expecter) Get(key interface{}, encryptionKey interface{}) *MockConfig_Get_Call
- func (_e *MockConfig_Expecter) GetBitcoinDisplayFormat() *MockConfig_GetBitcoinDisplayFormat_Call
- func (_e *MockConfig_Expecter) GetCurrency() *MockConfig_GetCurrency_Call
- func (_e *MockConfig_Expecter) GetEnv() *MockConfig_GetEnv_Call
- func (_e *MockConfig_Expecter) GetJWTSecret() *MockConfig_GetJWTSecret_Call
- func (_e *MockConfig_Expecter) GetMempoolUrl() *MockConfig_GetMempoolUrl_Call
- func (_e *MockConfig_Expecter) GetNetwork() *MockConfig_GetNetwork_Call
- func (_e *MockConfig_Expecter) GetRelayUrls() *MockConfig_GetRelayUrls_Call
- func (_e *MockConfig_Expecter) SaveUnlockPasswordCheck(encryptionKey interface{}) *MockConfig_SaveUnlockPasswordCheck_Call
- func (_e *MockConfig_Expecter) SetAutoUnlockPassword(unlockPassword interface{}) *MockConfig_SetAutoUnlockPassword_Call
- func (_e *MockConfig_Expecter) SetBitcoinDisplayFormat(value interface{}) *MockConfig_SetBitcoinDisplayFormat_Call
- func (_e *MockConfig_Expecter) SetCurrency(value interface{}) *MockConfig_SetCurrency_Call
- func (_e *MockConfig_Expecter) SetIgnore(key interface{}, value interface{}, encryptionKey interface{}) *MockConfig_SetIgnore_Call
- func (_e *MockConfig_Expecter) SetUpdate(key interface{}, value interface{}, encryptionKey interface{}) *MockConfig_SetUpdate_Call
- func (_e *MockConfig_Expecter) SetupCompleted() *MockConfig_SetupCompleted_Call
- func (_e *MockConfig_Expecter) Unlock(encryptionKey interface{}) *MockConfig_Unlock_Call
- type MockConfig_GetBitcoinDisplayFormat_Call
- func (_c *MockConfig_GetBitcoinDisplayFormat_Call) Return(s string) *MockConfig_GetBitcoinDisplayFormat_Call
- func (_c *MockConfig_GetBitcoinDisplayFormat_Call) Run(run func()) *MockConfig_GetBitcoinDisplayFormat_Call
- func (_c *MockConfig_GetBitcoinDisplayFormat_Call) RunAndReturn(run func() string) *MockConfig_GetBitcoinDisplayFormat_Call
- type MockConfig_GetCurrency_Call
- type MockConfig_GetEnv_Call
- type MockConfig_GetJWTSecret_Call
- type MockConfig_GetMempoolUrl_Call
- type MockConfig_GetNetwork_Call
- type MockConfig_GetRelayUrls_Call
- type MockConfig_Get_Call
- func (_c *MockConfig_Get_Call) Return(s string, err error) *MockConfig_Get_Call
- func (_c *MockConfig_Get_Call) Run(run func(key string, encryptionKey string)) *MockConfig_Get_Call
- func (_c *MockConfig_Get_Call) RunAndReturn(run func(key string, encryptionKey string) (string, error)) *MockConfig_Get_Call
- type MockConfig_SaveUnlockPasswordCheck_Call
- func (_c *MockConfig_SaveUnlockPasswordCheck_Call) Return(err error) *MockConfig_SaveUnlockPasswordCheck_Call
- func (_c *MockConfig_SaveUnlockPasswordCheck_Call) Run(run func(encryptionKey string)) *MockConfig_SaveUnlockPasswordCheck_Call
- func (_c *MockConfig_SaveUnlockPasswordCheck_Call) RunAndReturn(run func(encryptionKey string) error) *MockConfig_SaveUnlockPasswordCheck_Call
- type MockConfig_SetAutoUnlockPassword_Call
- func (_c *MockConfig_SetAutoUnlockPassword_Call) Return(err error) *MockConfig_SetAutoUnlockPassword_Call
- func (_c *MockConfig_SetAutoUnlockPassword_Call) Run(run func(unlockPassword string)) *MockConfig_SetAutoUnlockPassword_Call
- func (_c *MockConfig_SetAutoUnlockPassword_Call) RunAndReturn(run func(unlockPassword string) error) *MockConfig_SetAutoUnlockPassword_Call
- type MockConfig_SetBitcoinDisplayFormat_Call
- func (_c *MockConfig_SetBitcoinDisplayFormat_Call) Return(err error) *MockConfig_SetBitcoinDisplayFormat_Call
- func (_c *MockConfig_SetBitcoinDisplayFormat_Call) Run(run func(value string)) *MockConfig_SetBitcoinDisplayFormat_Call
- func (_c *MockConfig_SetBitcoinDisplayFormat_Call) RunAndReturn(run func(value string) error) *MockConfig_SetBitcoinDisplayFormat_Call
- type MockConfig_SetCurrency_Call
- type MockConfig_SetIgnore_Call
- func (_c *MockConfig_SetIgnore_Call) Return(err error) *MockConfig_SetIgnore_Call
- func (_c *MockConfig_SetIgnore_Call) Run(run func(key string, value string, encryptionKey string)) *MockConfig_SetIgnore_Call
- func (_c *MockConfig_SetIgnore_Call) RunAndReturn(run func(key string, value string, encryptionKey string) error) *MockConfig_SetIgnore_Call
- type MockConfig_SetUpdate_Call
- func (_c *MockConfig_SetUpdate_Call) Return(err error) *MockConfig_SetUpdate_Call
- func (_c *MockConfig_SetUpdate_Call) Run(run func(key string, value string, encryptionKey string)) *MockConfig_SetUpdate_Call
- func (_c *MockConfig_SetUpdate_Call) RunAndReturn(run func(key string, value string, encryptionKey string) error) *MockConfig_SetUpdate_Call
- type MockConfig_SetupCompleted_Call
- type MockConfig_Unlock_Call
- type MockEventPublisher
- func (_m *MockEventPublisher) EXPECT() *MockEventPublisher_Expecter
- func (_mock *MockEventPublisher) Publish(event *events.Event)
- func (_mock *MockEventPublisher) PublishSync(event *events.Event)
- func (_mock *MockEventPublisher) RegisterSubscriber(eventListener events.EventSubscriber)
- func (_mock *MockEventPublisher) RemoveSubscriber(eventListener events.EventSubscriber)
- func (_mock *MockEventPublisher) SetGlobalProperty(key string, value interface{})
- type MockEventPublisher_Expecter
- func (_e *MockEventPublisher_Expecter) Publish(event interface{}) *MockEventPublisher_Publish_Call
- func (_e *MockEventPublisher_Expecter) PublishSync(event interface{}) *MockEventPublisher_PublishSync_Call
- func (_e *MockEventPublisher_Expecter) RegisterSubscriber(eventListener interface{}) *MockEventPublisher_RegisterSubscriber_Call
- func (_e *MockEventPublisher_Expecter) RemoveSubscriber(eventListener interface{}) *MockEventPublisher_RemoveSubscriber_Call
- func (_e *MockEventPublisher_Expecter) SetGlobalProperty(key interface{}, value interface{}) *MockEventPublisher_SetGlobalProperty_Call
- type MockEventPublisher_PublishSync_Call
- func (_c *MockEventPublisher_PublishSync_Call) Return() *MockEventPublisher_PublishSync_Call
- func (_c *MockEventPublisher_PublishSync_Call) Run(run func(event *events.Event)) *MockEventPublisher_PublishSync_Call
- func (_c *MockEventPublisher_PublishSync_Call) RunAndReturn(run func(event *events.Event)) *MockEventPublisher_PublishSync_Call
- type MockEventPublisher_Publish_Call
- func (_c *MockEventPublisher_Publish_Call) Return() *MockEventPublisher_Publish_Call
- func (_c *MockEventPublisher_Publish_Call) Run(run func(event *events.Event)) *MockEventPublisher_Publish_Call
- func (_c *MockEventPublisher_Publish_Call) RunAndReturn(run func(event *events.Event)) *MockEventPublisher_Publish_Call
- type MockEventPublisher_RegisterSubscriber_Call
- func (_c *MockEventPublisher_RegisterSubscriber_Call) Return() *MockEventPublisher_RegisterSubscriber_Call
- func (_c *MockEventPublisher_RegisterSubscriber_Call) Run(run func(eventListener events.EventSubscriber)) *MockEventPublisher_RegisterSubscriber_Call
- func (_c *MockEventPublisher_RegisterSubscriber_Call) RunAndReturn(run func(eventListener events.EventSubscriber)) *MockEventPublisher_RegisterSubscriber_Call
- type MockEventPublisher_RemoveSubscriber_Call
- func (_c *MockEventPublisher_RemoveSubscriber_Call) Return() *MockEventPublisher_RemoveSubscriber_Call
- func (_c *MockEventPublisher_RemoveSubscriber_Call) Run(run func(eventListener events.EventSubscriber)) *MockEventPublisher_RemoveSubscriber_Call
- func (_c *MockEventPublisher_RemoveSubscriber_Call) RunAndReturn(run func(eventListener events.EventSubscriber)) *MockEventPublisher_RemoveSubscriber_Call
- type MockEventPublisher_SetGlobalProperty_Call
- func (_c *MockEventPublisher_SetGlobalProperty_Call) Return() *MockEventPublisher_SetGlobalProperty_Call
- func (_c *MockEventPublisher_SetGlobalProperty_Call) Run(run func(key string, value interface{})) *MockEventPublisher_SetGlobalProperty_Call
- func (_c *MockEventPublisher_SetGlobalProperty_Call) RunAndReturn(run func(key string, value interface{})) *MockEventPublisher_SetGlobalProperty_Call
- type MockKeys
- func (_mock *MockKeys) DeriveKey(path []uint32) (*bip32.Key, error)
- func (_m *MockKeys) EXPECT() *MockKeys_Expecter
- func (_mock *MockKeys) GetAppWalletKey(childIndex uint) (string, error)
- func (_mock *MockKeys) GetNostrPublicKey() string
- func (_mock *MockKeys) GetNostrSecretKey() string
- func (_mock *MockKeys) GetSwapKey(childIndex uint) (*btcec.PrivateKey, error)
- func (_mock *MockKeys) GetSwapMnemonic() string
- func (_mock *MockKeys) Init(cfg config.Config, encryptionKey string) error
- type MockKeys_DeriveKey_Call
- func (_c *MockKeys_DeriveKey_Call) Return(key *bip32.Key, err error) *MockKeys_DeriveKey_Call
- func (_c *MockKeys_DeriveKey_Call) Run(run func(path []uint32)) *MockKeys_DeriveKey_Call
- func (_c *MockKeys_DeriveKey_Call) RunAndReturn(run func(path []uint32) (*bip32.Key, error)) *MockKeys_DeriveKey_Call
- type MockKeys_Expecter
- func (_e *MockKeys_Expecter) DeriveKey(path interface{}) *MockKeys_DeriveKey_Call
- func (_e *MockKeys_Expecter) GetAppWalletKey(childIndex interface{}) *MockKeys_GetAppWalletKey_Call
- func (_e *MockKeys_Expecter) GetNostrPublicKey() *MockKeys_GetNostrPublicKey_Call
- func (_e *MockKeys_Expecter) GetNostrSecretKey() *MockKeys_GetNostrSecretKey_Call
- func (_e *MockKeys_Expecter) GetSwapKey(childIndex interface{}) *MockKeys_GetSwapKey_Call
- func (_e *MockKeys_Expecter) GetSwapMnemonic() *MockKeys_GetSwapMnemonic_Call
- func (_e *MockKeys_Expecter) Init(cfg interface{}, encryptionKey interface{}) *MockKeys_Init_Call
- type MockKeys_GetAppWalletKey_Call
- func (_c *MockKeys_GetAppWalletKey_Call) Return(s string, err error) *MockKeys_GetAppWalletKey_Call
- func (_c *MockKeys_GetAppWalletKey_Call) Run(run func(childIndex uint)) *MockKeys_GetAppWalletKey_Call
- func (_c *MockKeys_GetAppWalletKey_Call) RunAndReturn(run func(childIndex uint) (string, error)) *MockKeys_GetAppWalletKey_Call
- type MockKeys_GetNostrPublicKey_Call
- type MockKeys_GetNostrSecretKey_Call
- type MockKeys_GetSwapKey_Call
- func (_c *MockKeys_GetSwapKey_Call) Return(v *btcec.PrivateKey, err error) *MockKeys_GetSwapKey_Call
- func (_c *MockKeys_GetSwapKey_Call) Run(run func(childIndex uint)) *MockKeys_GetSwapKey_Call
- func (_c *MockKeys_GetSwapKey_Call) RunAndReturn(run func(childIndex uint) (*btcec.PrivateKey, error)) *MockKeys_GetSwapKey_Call
- type MockKeys_GetSwapMnemonic_Call
- type MockKeys_Init_Call
- type MockLNClient
- func (_mock *MockLNClient) CancelHoldInvoice(ctx context.Context, paymentHash string) error
- func (_mock *MockLNClient) CloseChannel(ctx context.Context, closeChannelRequest *lnclient.CloseChannelRequest) (*lnclient.CloseChannelResponse, error)
- func (_mock *MockLNClient) ConnectPeer(ctx context.Context, connectPeerRequest *lnclient.ConnectPeerRequest) error
- func (_mock *MockLNClient) DisconnectPeer(ctx context.Context, peerId string) error
- func (_m *MockLNClient) EXPECT() *MockLNClient_Expecter
- func (_mock *MockLNClient) ExecuteCustomNodeCommand(ctx context.Context, command *lnclient.CustomNodeCommandRequest) (*lnclient.CustomNodeCommandResponse, error)
- func (_mock *MockLNClient) GetBalances(ctx context.Context, includeInactiveChannels bool) (*lnclient.BalancesResponse, error)
- func (_mock *MockLNClient) GetCustomNodeCommandDefinitions() []lnclient.CustomNodeCommandDef
- func (_mock *MockLNClient) GetInfo(ctx context.Context) (*lnclient.NodeInfo, error)
- func (_mock *MockLNClient) GetLogOutput(ctx context.Context, maxLen int) ([]byte, error)
- func (_mock *MockLNClient) GetNetworkGraph(ctx context.Context, nodeIds []string) (lnclient.NetworkGraphResponse, error)
- func (_mock *MockLNClient) GetNewOnchainAddress(ctx context.Context) (string, error)
- func (_mock *MockLNClient) GetNodeConnectionInfo(ctx context.Context) (*lnclient.NodeConnectionInfo, error)
- func (_mock *MockLNClient) GetNodeStatus(ctx context.Context) (*lnclient.NodeStatus, error)
- func (_mock *MockLNClient) GetOnchainBalance(ctx context.Context) (*lnclient.OnchainBalanceResponse, error)
- func (_mock *MockLNClient) GetPubkey() string
- func (_mock *MockLNClient) GetStorageDir() (string, error)
- func (_mock *MockLNClient) GetSupportedNIP47Methods() []string
- func (_mock *MockLNClient) GetSupportedNIP47NotificationTypes() []string
- func (_mock *MockLNClient) ListChannels(ctx context.Context) ([]lnclient.Channel, error)
- func (_mock *MockLNClient) ListOnchainTransactions(ctx context.Context) ([]lnclient.OnchainTransaction, error)
- func (_mock *MockLNClient) ListPeers(ctx context.Context) ([]lnclient.PeerDetails, error)
- func (_mock *MockLNClient) ListTransactions(ctx context.Context, from uint64, until uint64, limit uint64, offset uint64, ...) ([]lnclient.Transaction, error)
- func (_mock *MockLNClient) LookupInvoice(ctx context.Context, paymentHash string) (*lnclient.Transaction, error)
- func (_mock *MockLNClient) MakeHoldInvoice(ctx context.Context, amount int64, description string, descriptionHash string, ...) (*lnclient.Transaction, error)
- func (_mock *MockLNClient) MakeInvoice(ctx context.Context, amount int64, description string, descriptionHash string, ...) (*lnclient.Transaction, error)
- func (_mock *MockLNClient) MakeOffer(ctx context.Context, description string) (string, error)
- func (_mock *MockLNClient) OpenChannel(ctx context.Context, openChannelRequest *lnclient.OpenChannelRequest) (*lnclient.OpenChannelResponse, error)
- func (_mock *MockLNClient) RedeemOnchainFunds(ctx context.Context, toAddress string, amount uint64, feeRate *uint64, ...) (string, error)
- func (_mock *MockLNClient) ResetRouter(key string) error
- func (_mock *MockLNClient) SendKeysend(amount uint64, destination string, customRecords []lnclient.TLVRecord, ...) (*lnclient.PayKeysendResponse, error)
- func (_mock *MockLNClient) SendPaymentProbes(ctx context.Context, invoice string) error
- func (_mock *MockLNClient) SendPaymentSync(payReq string, amount *uint64) (*lnclient.PayInvoiceResponse, error)
- func (_mock *MockLNClient) SendSpontaneousPaymentProbes(ctx context.Context, amountMsat uint64, nodeId string) error
- func (_mock *MockLNClient) SettleHoldInvoice(ctx context.Context, preimage string) error
- func (_mock *MockLNClient) Shutdown() error
- func (_mock *MockLNClient) SignMessage(ctx context.Context, message string) (string, error)
- func (_mock *MockLNClient) UpdateChannel(ctx context.Context, updateChannelRequest *lnclient.UpdateChannelRequest) error
- func (_mock *MockLNClient) UpdateLastWalletSyncRequest()
- type MockLNClient_CancelHoldInvoice_Call
- func (_c *MockLNClient_CancelHoldInvoice_Call) Return(err error) *MockLNClient_CancelHoldInvoice_Call
- func (_c *MockLNClient_CancelHoldInvoice_Call) Run(run func(ctx context.Context, paymentHash string)) *MockLNClient_CancelHoldInvoice_Call
- func (_c *MockLNClient_CancelHoldInvoice_Call) RunAndReturn(run func(ctx context.Context, paymentHash string) error) *MockLNClient_CancelHoldInvoice_Call
- type MockLNClient_CloseChannel_Call
- func (_c *MockLNClient_CloseChannel_Call) Return(closeChannelResponse *lnclient.CloseChannelResponse, err 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(err 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(...) *MockLNClient_ConnectPeer_Call
- type MockLNClient_DisconnectPeer_Call
- func (_c *MockLNClient_DisconnectPeer_Call) Return(err 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(ctx context.Context, peerId string) error) *MockLNClient_DisconnectPeer_Call
- type MockLNClient_ExecuteCustomNodeCommand_Call
- func (_c *MockLNClient_ExecuteCustomNodeCommand_Call) Return(customNodeCommandResponse *lnclient.CustomNodeCommandResponse, err 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) CancelHoldInvoice(ctx interface{}, paymentHash interface{}) *MockLNClient_CancelHoldInvoice_Call
- 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{}, includeInactiveChannels 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) ListOnchainTransactions(ctx interface{}) *MockLNClient_ListOnchainTransactions_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) MakeHoldInvoice(ctx interface{}, amount interface{}, description interface{}, ...) *MockLNClient_MakeHoldInvoice_Call
- func (_e *MockLNClient_Expecter) MakeInvoice(ctx interface{}, amount interface{}, description interface{}, ...) *MockLNClient_MakeInvoice_Call
- func (_e *MockLNClient_Expecter) MakeOffer(ctx interface{}, description interface{}) *MockLNClient_MakeOffer_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(amount interface{}, destination interface{}, customRecords interface{}, ...) *MockLNClient_SendKeysend_Call
- func (_e *MockLNClient_Expecter) SendPaymentProbes(ctx interface{}, invoice interface{}) *MockLNClient_SendPaymentProbes_Call
- func (_e *MockLNClient_Expecter) SendPaymentSync(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) SettleHoldInvoice(ctx interface{}, preimage interface{}) *MockLNClient_SettleHoldInvoice_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(balancesResponse *lnclient.BalancesResponse, err error) *MockLNClient_GetBalances_Call
- func (_c *MockLNClient_GetBalances_Call) Run(run func(ctx context.Context, includeInactiveChannels bool)) *MockLNClient_GetBalances_Call
- func (_c *MockLNClient_GetBalances_Call) RunAndReturn(...) *MockLNClient_GetBalances_Call
- type MockLNClient_GetCustomNodeCommandDefinitions_Call
- func (_c *MockLNClient_GetCustomNodeCommandDefinitions_Call) Return(customNodeCommandDefs []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(ctx context.Context) (*lnclient.NodeInfo, error)) *MockLNClient_GetInfo_Call
- type MockLNClient_GetLogOutput_Call
- func (_c *MockLNClient_GetLogOutput_Call) Return(bytes []byte, err 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(ctx context.Context, maxLen int) ([]byte, error)) *MockLNClient_GetLogOutput_Call
- type MockLNClient_GetNetworkGraph_Call
- func (_c *MockLNClient_GetNetworkGraph_Call) Return(v lnclient.NetworkGraphResponse, err 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(...) *MockLNClient_GetNetworkGraph_Call
- type MockLNClient_GetNewOnchainAddress_Call
- func (_c *MockLNClient_GetNewOnchainAddress_Call) Return(s string, err 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(ctx 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(ctx 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(ctx context.Context) (*lnclient.NodeStatus, error)) *MockLNClient_GetNodeStatus_Call
- type MockLNClient_GetOnchainBalance_Call
- func (_c *MockLNClient_GetOnchainBalance_Call) Return(onchainBalanceResponse *lnclient.OnchainBalanceResponse, err 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(ctx context.Context) (*lnclient.OnchainBalanceResponse, error)) *MockLNClient_GetOnchainBalance_Call
- type MockLNClient_GetPubkey_Call
- type MockLNClient_GetStorageDir_Call
- func (_c *MockLNClient_GetStorageDir_Call) Return(s string, err 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(strings []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(strings []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(ctx context.Context) ([]lnclient.Channel, error)) *MockLNClient_ListChannels_Call
- type MockLNClient_ListOnchainTransactions_Call
- func (_c *MockLNClient_ListOnchainTransactions_Call) Return(onchainTransactions []lnclient.OnchainTransaction, err error) *MockLNClient_ListOnchainTransactions_Call
- func (_c *MockLNClient_ListOnchainTransactions_Call) Run(run func(ctx context.Context)) *MockLNClient_ListOnchainTransactions_Call
- func (_c *MockLNClient_ListOnchainTransactions_Call) RunAndReturn(run func(ctx context.Context) ([]lnclient.OnchainTransaction, error)) *MockLNClient_ListOnchainTransactions_Call
- type MockLNClient_ListPeers_Call
- func (_c *MockLNClient_ListPeers_Call) Return(peerDetailss []lnclient.PeerDetails, err 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(ctx 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(...) *MockLNClient_LookupInvoice_Call
- type MockLNClient_MakeHoldInvoice_Call
- func (_c *MockLNClient_MakeHoldInvoice_Call) Return(transaction *lnclient.Transaction, err error) *MockLNClient_MakeHoldInvoice_Call
- func (_c *MockLNClient_MakeHoldInvoice_Call) Run(...) *MockLNClient_MakeHoldInvoice_Call
- func (_c *MockLNClient_MakeHoldInvoice_Call) RunAndReturn(...) *MockLNClient_MakeHoldInvoice_Call
- type MockLNClient_MakeInvoice_Call
- type MockLNClient_MakeOffer_Call
- func (_c *MockLNClient_MakeOffer_Call) Return(s string, err error) *MockLNClient_MakeOffer_Call
- func (_c *MockLNClient_MakeOffer_Call) Run(run func(ctx context.Context, description string)) *MockLNClient_MakeOffer_Call
- func (_c *MockLNClient_MakeOffer_Call) RunAndReturn(run func(ctx context.Context, description string) (string, error)) *MockLNClient_MakeOffer_Call
- type MockLNClient_OpenChannel_Call
- func (_c *MockLNClient_OpenChannel_Call) Return(openChannelResponse *lnclient.OpenChannelResponse, err 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(...) *MockLNClient_RedeemOnchainFunds_Call
- func (_c *MockLNClient_RedeemOnchainFunds_Call) RunAndReturn(...) *MockLNClient_RedeemOnchainFunds_Call
- type MockLNClient_ResetRouter_Call
- func (_c *MockLNClient_ResetRouter_Call) Return(err error) *MockLNClient_ResetRouter_Call
- func (_c *MockLNClient_ResetRouter_Call) Run(run func(key string)) *MockLNClient_ResetRouter_Call
- func (_c *MockLNClient_ResetRouter_Call) RunAndReturn(run func(key string) error) *MockLNClient_ResetRouter_Call
- type MockLNClient_SendKeysend_Call
- func (_c *MockLNClient_SendKeysend_Call) Return(payKeysendResponse *lnclient.PayKeysendResponse, err error) *MockLNClient_SendKeysend_Call
- func (_c *MockLNClient_SendKeysend_Call) Run(...) *MockLNClient_SendKeysend_Call
- func (_c *MockLNClient_SendKeysend_Call) RunAndReturn(...) *MockLNClient_SendKeysend_Call
- type MockLNClient_SendPaymentProbes_Call
- func (_c *MockLNClient_SendPaymentProbes_Call) Return(err 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(ctx context.Context, invoice string) error) *MockLNClient_SendPaymentProbes_Call
- type MockLNClient_SendPaymentSync_Call
- func (_c *MockLNClient_SendPaymentSync_Call) Return(payInvoiceResponse *lnclient.PayInvoiceResponse, err error) *MockLNClient_SendPaymentSync_Call
- func (_c *MockLNClient_SendPaymentSync_Call) Run(run func(payReq string, amount *uint64)) *MockLNClient_SendPaymentSync_Call
- func (_c *MockLNClient_SendPaymentSync_Call) RunAndReturn(run func(payReq string, amount *uint64) (*lnclient.PayInvoiceResponse, error)) *MockLNClient_SendPaymentSync_Call
- type MockLNClient_SendSpontaneousPaymentProbes_Call
- func (_c *MockLNClient_SendSpontaneousPaymentProbes_Call) Return(err 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(ctx context.Context, amountMsat uint64, nodeId string) error) *MockLNClient_SendSpontaneousPaymentProbes_Call
- type MockLNClient_SettleHoldInvoice_Call
- func (_c *MockLNClient_SettleHoldInvoice_Call) Return(err error) *MockLNClient_SettleHoldInvoice_Call
- func (_c *MockLNClient_SettleHoldInvoice_Call) Run(run func(ctx context.Context, preimage string)) *MockLNClient_SettleHoldInvoice_Call
- func (_c *MockLNClient_SettleHoldInvoice_Call) RunAndReturn(run func(ctx context.Context, preimage string) error) *MockLNClient_SettleHoldInvoice_Call
- type MockLNClient_Shutdown_Call
- type MockLNClient_SignMessage_Call
- func (_c *MockLNClient_SignMessage_Call) Return(s string, err 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(ctx context.Context, message string) (string, error)) *MockLNClient_SignMessage_Call
- type 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 (_mock *MockService) GetAlbyOAuthSvc() alby.AlbyOAuthService
- func (_mock *MockService) GetAlbySvc() alby.AlbyService
- func (_mock *MockService) GetConfig() config.Config
- func (_mock *MockService) GetDB() *gorm.DB
- func (_mock *MockService) GetEventPublisher() events.EventPublisher
- func (_mock *MockService) GetKeys() keys.Keys
- func (_mock *MockService) GetLNClient() lnclient.LNClient
- func (_mock *MockService) GetRelayStatuses() []service.RelayStatus
- func (_mock *MockService) GetStartupState() string
- func (_mock *MockService) GetSwapsService() swaps.SwapsService
- func (_mock *MockService) GetTransactionsService() transactions.TransactionsService
- func (_mock *MockService) Shutdown()
- func (_mock *MockService) StartApp(encryptionKey string) error
- func (_mock *MockService) StopApp()
- type MockService_Expecter
- func (_e *MockService_Expecter) GetAlbyOAuthSvc() *MockService_GetAlbyOAuthSvc_Call
- func (_e *MockService_Expecter) GetAlbySvc() *MockService_GetAlbySvc_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) GetRelayStatuses() *MockService_GetRelayStatuses_Call
- func (_e *MockService_Expecter) GetStartupState() *MockService_GetStartupState_Call
- func (_e *MockService_Expecter) GetSwapsService() *MockService_GetSwapsService_Call
- func (_e *MockService_Expecter) GetTransactionsService() *MockService_GetTransactionsService_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(albyOAuthService 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_GetAlbySvc_Call
- type MockService_GetConfig_Call
- type MockService_GetDB_Call
- type MockService_GetEventPublisher_Call
- func (_c *MockService_GetEventPublisher_Call) Return(eventPublisher 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
- func (_c *MockService_GetLNClient_Call) Return(lNClient lnclient.LNClient) *MockService_GetLNClient_Call
- func (_c *MockService_GetLNClient_Call) Run(run func()) *MockService_GetLNClient_Call
- func (_c *MockService_GetLNClient_Call) RunAndReturn(run func() lnclient.LNClient) *MockService_GetLNClient_Call
- type MockService_GetRelayStatuses_Call
- func (_c *MockService_GetRelayStatuses_Call) Return(relayStatuss []service.RelayStatus) *MockService_GetRelayStatuses_Call
- func (_c *MockService_GetRelayStatuses_Call) Run(run func()) *MockService_GetRelayStatuses_Call
- func (_c *MockService_GetRelayStatuses_Call) RunAndReturn(run func() []service.RelayStatus) *MockService_GetRelayStatuses_Call
- type MockService_GetStartupState_Call
- type MockService_GetSwapsService_Call
- func (_c *MockService_GetSwapsService_Call) Return(swapsService swaps.SwapsService) *MockService_GetSwapsService_Call
- func (_c *MockService_GetSwapsService_Call) Run(run func()) *MockService_GetSwapsService_Call
- func (_c *MockService_GetSwapsService_Call) RunAndReturn(run func() swaps.SwapsService) *MockService_GetSwapsService_Call
- type MockService_GetTransactionsService_Call
- func (_c *MockService_GetTransactionsService_Call) Return(transactionsService 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_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 MockAlbyOAuthService ¶ added in v1.20.0
MockAlbyOAuthService is an autogenerated mock type for the AlbyOAuthService type
func NewMockAlbyOAuthService ¶ added in v1.20.0
func NewMockAlbyOAuthService(t interface {
mock.TestingT
Cleanup(func())
}) *MockAlbyOAuthService
NewMockAlbyOAuthService creates a new instance of MockAlbyOAuthService. 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 (*MockAlbyOAuthService) CallbackHandler ¶ added in v1.20.0
func (_mock *MockAlbyOAuthService) CallbackHandler(ctx context.Context, code string, lnClient lnclient.LNClient) error
CallbackHandler provides a mock function for the type MockAlbyOAuthService
func (*MockAlbyOAuthService) ConsumeEvent ¶ added in v1.20.0
func (_mock *MockAlbyOAuthService) ConsumeEvent(ctx context.Context, event *events.Event, globalProperties map[string]interface{})
ConsumeEvent provides a mock function for the type MockAlbyOAuthService
func (*MockAlbyOAuthService) CreateLSPOrder ¶ added in v1.20.0
func (_mock *MockAlbyOAuthService) CreateLSPOrder(ctx context.Context, lsp string, network string, lspChannelRequest *alby.LSPChannelRequest) (*alby.LSPChannelResponse, error)
CreateLSPOrder provides a mock function for the type MockAlbyOAuthService
func (*MockAlbyOAuthService) CreateLightningAddress ¶ added in v1.20.0
func (_mock *MockAlbyOAuthService) CreateLightningAddress(ctx context.Context, address string, appId uint) (*alby.CreateLightningAddressResponse, error)
CreateLightningAddress provides a mock function for the type MockAlbyOAuthService
func (*MockAlbyOAuthService) DeleteLightningAddress ¶ added in v1.20.0
func (_mock *MockAlbyOAuthService) DeleteLightningAddress(ctx context.Context, address string) error
DeleteLightningAddress provides a mock function for the type MockAlbyOAuthService
func (*MockAlbyOAuthService) EXPECT ¶ added in v1.20.0
func (_m *MockAlbyOAuthService) EXPECT() *MockAlbyOAuthService_Expecter
func (*MockAlbyOAuthService) GetAuthUrl ¶ added in v1.20.0
func (_mock *MockAlbyOAuthService) GetAuthUrl() string
GetAuthUrl provides a mock function for the type MockAlbyOAuthService
func (*MockAlbyOAuthService) GetLSPChannelOffer ¶ added in v1.20.0
func (_mock *MockAlbyOAuthService) GetLSPChannelOffer(ctx context.Context) (*alby.LSPChannelOffer, error)
GetLSPChannelOffer provides a mock function for the type MockAlbyOAuthService
func (*MockAlbyOAuthService) GetLSPInfo ¶ added in v1.20.0
func (_mock *MockAlbyOAuthService) GetLSPInfo(ctx context.Context, lsp string, network string) (*alby.LSPInfo, error)
GetLSPInfo provides a mock function for the type MockAlbyOAuthService
func (*MockAlbyOAuthService) GetLightningAddress ¶ added in v1.20.0
func (_mock *MockAlbyOAuthService) GetLightningAddress() (string, error)
GetLightningAddress provides a mock function for the type MockAlbyOAuthService
func (*MockAlbyOAuthService) GetMe ¶ added in v1.20.0
GetMe provides a mock function for the type MockAlbyOAuthService
func (*MockAlbyOAuthService) GetUserIdentifier ¶ added in v1.20.0
func (_mock *MockAlbyOAuthService) GetUserIdentifier() (string, error)
GetUserIdentifier provides a mock function for the type MockAlbyOAuthService
func (*MockAlbyOAuthService) GetVssAuthToken ¶ added in v1.20.0
func (_mock *MockAlbyOAuthService) GetVssAuthToken(ctx context.Context, nodeIdentifier string) (string, error)
GetVssAuthToken provides a mock function for the type MockAlbyOAuthService
func (*MockAlbyOAuthService) IsConnected ¶ added in v1.20.0
func (_mock *MockAlbyOAuthService) IsConnected(ctx context.Context) bool
IsConnected provides a mock function for the type MockAlbyOAuthService
func (*MockAlbyOAuthService) LinkAccount ¶ added in v1.20.0
func (_mock *MockAlbyOAuthService) LinkAccount(ctx context.Context, lnClient lnclient.LNClient, budget uint64, renewal string) error
LinkAccount provides a mock function for the type MockAlbyOAuthService
func (*MockAlbyOAuthService) RemoveOAuthAccessToken ¶ added in v1.20.0
func (_mock *MockAlbyOAuthService) RemoveOAuthAccessToken() error
RemoveOAuthAccessToken provides a mock function for the type MockAlbyOAuthService
func (*MockAlbyOAuthService) RequestAutoChannel ¶ added in v1.20.0
func (_mock *MockAlbyOAuthService) RequestAutoChannel(ctx context.Context, lnClient lnclient.LNClient, isPublic bool) (*alby.AutoChannelResponse, error)
RequestAutoChannel provides a mock function for the type MockAlbyOAuthService
func (*MockAlbyOAuthService) UnlinkAccount ¶ added in v1.20.0
func (_mock *MockAlbyOAuthService) UnlinkAccount(ctx context.Context) error
UnlinkAccount provides a mock function for the type MockAlbyOAuthService
type MockAlbyOAuthService_CallbackHandler_Call ¶ added in v1.20.0
MockAlbyOAuthService_CallbackHandler_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CallbackHandler'
func (*MockAlbyOAuthService_CallbackHandler_Call) Return ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_CallbackHandler_Call) Return(err error) *MockAlbyOAuthService_CallbackHandler_Call
func (*MockAlbyOAuthService_CallbackHandler_Call) Run ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_CallbackHandler_Call) Run(run func(ctx context.Context, code string, lnClient lnclient.LNClient)) *MockAlbyOAuthService_CallbackHandler_Call
func (*MockAlbyOAuthService_CallbackHandler_Call) RunAndReturn ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_CallbackHandler_Call) RunAndReturn(run func(ctx context.Context, code string, lnClient lnclient.LNClient) error) *MockAlbyOAuthService_CallbackHandler_Call
type MockAlbyOAuthService_ConsumeEvent_Call ¶ added in v1.20.0
MockAlbyOAuthService_ConsumeEvent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ConsumeEvent'
func (*MockAlbyOAuthService_ConsumeEvent_Call) Return ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_ConsumeEvent_Call) Return() *MockAlbyOAuthService_ConsumeEvent_Call
func (*MockAlbyOAuthService_ConsumeEvent_Call) Run ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_ConsumeEvent_Call) Run(run func(ctx context.Context, event *events.Event, globalProperties map[string]interface{})) *MockAlbyOAuthService_ConsumeEvent_Call
func (*MockAlbyOAuthService_ConsumeEvent_Call) RunAndReturn ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_ConsumeEvent_Call) RunAndReturn(run func(ctx context.Context, event *events.Event, globalProperties map[string]interface{})) *MockAlbyOAuthService_ConsumeEvent_Call
type MockAlbyOAuthService_CreateLSPOrder_Call ¶ added in v1.20.0
MockAlbyOAuthService_CreateLSPOrder_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateLSPOrder'
func (*MockAlbyOAuthService_CreateLSPOrder_Call) Return ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_CreateLSPOrder_Call) Return(lSPChannelResponse *alby.LSPChannelResponse, err error) *MockAlbyOAuthService_CreateLSPOrder_Call
func (*MockAlbyOAuthService_CreateLSPOrder_Call) Run ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_CreateLSPOrder_Call) Run(run func(ctx context.Context, lsp string, network string, lspChannelRequest *alby.LSPChannelRequest)) *MockAlbyOAuthService_CreateLSPOrder_Call
func (*MockAlbyOAuthService_CreateLSPOrder_Call) RunAndReturn ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_CreateLSPOrder_Call) RunAndReturn(run func(ctx context.Context, lsp string, network string, lspChannelRequest *alby.LSPChannelRequest) (*alby.LSPChannelResponse, error)) *MockAlbyOAuthService_CreateLSPOrder_Call
type MockAlbyOAuthService_CreateLightningAddress_Call ¶ added in v1.20.0
MockAlbyOAuthService_CreateLightningAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateLightningAddress'
func (*MockAlbyOAuthService_CreateLightningAddress_Call) Return ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_CreateLightningAddress_Call) Return(createLightningAddressResponse *alby.CreateLightningAddressResponse, err error) *MockAlbyOAuthService_CreateLightningAddress_Call
func (*MockAlbyOAuthService_CreateLightningAddress_Call) Run ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_CreateLightningAddress_Call) Run(run func(ctx context.Context, address string, appId uint)) *MockAlbyOAuthService_CreateLightningAddress_Call
func (*MockAlbyOAuthService_CreateLightningAddress_Call) RunAndReturn ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_CreateLightningAddress_Call) RunAndReturn(run func(ctx context.Context, address string, appId uint) (*alby.CreateLightningAddressResponse, error)) *MockAlbyOAuthService_CreateLightningAddress_Call
type MockAlbyOAuthService_DeleteLightningAddress_Call ¶ added in v1.20.0
MockAlbyOAuthService_DeleteLightningAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteLightningAddress'
func (*MockAlbyOAuthService_DeleteLightningAddress_Call) Return ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_DeleteLightningAddress_Call) Return(err error) *MockAlbyOAuthService_DeleteLightningAddress_Call
func (*MockAlbyOAuthService_DeleteLightningAddress_Call) Run ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_DeleteLightningAddress_Call) Run(run func(ctx context.Context, address string)) *MockAlbyOAuthService_DeleteLightningAddress_Call
func (*MockAlbyOAuthService_DeleteLightningAddress_Call) RunAndReturn ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_DeleteLightningAddress_Call) RunAndReturn(run func(ctx context.Context, address string) error) *MockAlbyOAuthService_DeleteLightningAddress_Call
type MockAlbyOAuthService_Expecter ¶ added in v1.20.0
type MockAlbyOAuthService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockAlbyOAuthService_Expecter) CallbackHandler ¶ added in v1.20.0
func (_e *MockAlbyOAuthService_Expecter) CallbackHandler(ctx interface{}, code interface{}, lnClient interface{}) *MockAlbyOAuthService_CallbackHandler_Call
CallbackHandler is a helper method to define mock.On call
- ctx
- code
- lnClient
func (*MockAlbyOAuthService_Expecter) ConsumeEvent ¶ added in v1.20.0
func (_e *MockAlbyOAuthService_Expecter) ConsumeEvent(ctx interface{}, event interface{}, globalProperties interface{}) *MockAlbyOAuthService_ConsumeEvent_Call
ConsumeEvent is a helper method to define mock.On call
- ctx
- event
- globalProperties
func (*MockAlbyOAuthService_Expecter) CreateLSPOrder ¶ added in v1.20.0
func (_e *MockAlbyOAuthService_Expecter) CreateLSPOrder(ctx interface{}, lsp interface{}, network interface{}, lspChannelRequest interface{}) *MockAlbyOAuthService_CreateLSPOrder_Call
CreateLSPOrder is a helper method to define mock.On call
- ctx
- lsp
- network
- lspChannelRequest
func (*MockAlbyOAuthService_Expecter) CreateLightningAddress ¶ added in v1.20.0
func (_e *MockAlbyOAuthService_Expecter) CreateLightningAddress(ctx interface{}, address interface{}, appId interface{}) *MockAlbyOAuthService_CreateLightningAddress_Call
CreateLightningAddress is a helper method to define mock.On call
- ctx
- address
- appId
func (*MockAlbyOAuthService_Expecter) DeleteLightningAddress ¶ added in v1.20.0
func (_e *MockAlbyOAuthService_Expecter) DeleteLightningAddress(ctx interface{}, address interface{}) *MockAlbyOAuthService_DeleteLightningAddress_Call
DeleteLightningAddress is a helper method to define mock.On call
- ctx
- address
func (*MockAlbyOAuthService_Expecter) GetAuthUrl ¶ added in v1.20.0
func (_e *MockAlbyOAuthService_Expecter) GetAuthUrl() *MockAlbyOAuthService_GetAuthUrl_Call
GetAuthUrl is a helper method to define mock.On call
func (*MockAlbyOAuthService_Expecter) GetLSPChannelOffer ¶ added in v1.20.0
func (_e *MockAlbyOAuthService_Expecter) GetLSPChannelOffer(ctx interface{}) *MockAlbyOAuthService_GetLSPChannelOffer_Call
GetLSPChannelOffer is a helper method to define mock.On call
- ctx
func (*MockAlbyOAuthService_Expecter) GetLSPInfo ¶ added in v1.20.0
func (_e *MockAlbyOAuthService_Expecter) GetLSPInfo(ctx interface{}, lsp interface{}, network interface{}) *MockAlbyOAuthService_GetLSPInfo_Call
GetLSPInfo is a helper method to define mock.On call
- ctx
- lsp
- network
func (*MockAlbyOAuthService_Expecter) GetLightningAddress ¶ added in v1.20.0
func (_e *MockAlbyOAuthService_Expecter) GetLightningAddress() *MockAlbyOAuthService_GetLightningAddress_Call
GetLightningAddress is a helper method to define mock.On call
func (*MockAlbyOAuthService_Expecter) GetMe ¶ added in v1.20.0
func (_e *MockAlbyOAuthService_Expecter) GetMe(ctx interface{}) *MockAlbyOAuthService_GetMe_Call
GetMe is a helper method to define mock.On call
- ctx
func (*MockAlbyOAuthService_Expecter) GetUserIdentifier ¶ added in v1.20.0
func (_e *MockAlbyOAuthService_Expecter) GetUserIdentifier() *MockAlbyOAuthService_GetUserIdentifier_Call
GetUserIdentifier is a helper method to define mock.On call
func (*MockAlbyOAuthService_Expecter) GetVssAuthToken ¶ added in v1.20.0
func (_e *MockAlbyOAuthService_Expecter) GetVssAuthToken(ctx interface{}, nodeIdentifier interface{}) *MockAlbyOAuthService_GetVssAuthToken_Call
GetVssAuthToken is a helper method to define mock.On call
- ctx
- nodeIdentifier
func (*MockAlbyOAuthService_Expecter) IsConnected ¶ added in v1.20.0
func (_e *MockAlbyOAuthService_Expecter) IsConnected(ctx interface{}) *MockAlbyOAuthService_IsConnected_Call
IsConnected is a helper method to define mock.On call
- ctx
func (*MockAlbyOAuthService_Expecter) LinkAccount ¶ added in v1.20.0
func (_e *MockAlbyOAuthService_Expecter) LinkAccount(ctx interface{}, lnClient interface{}, budget interface{}, renewal interface{}) *MockAlbyOAuthService_LinkAccount_Call
LinkAccount is a helper method to define mock.On call
- ctx
- lnClient
- budget
- renewal
func (*MockAlbyOAuthService_Expecter) RemoveOAuthAccessToken ¶ added in v1.20.0
func (_e *MockAlbyOAuthService_Expecter) RemoveOAuthAccessToken() *MockAlbyOAuthService_RemoveOAuthAccessToken_Call
RemoveOAuthAccessToken is a helper method to define mock.On call
func (*MockAlbyOAuthService_Expecter) RequestAutoChannel ¶ added in v1.20.0
func (_e *MockAlbyOAuthService_Expecter) RequestAutoChannel(ctx interface{}, lnClient interface{}, isPublic interface{}) *MockAlbyOAuthService_RequestAutoChannel_Call
RequestAutoChannel is a helper method to define mock.On call
- ctx
- lnClient
- isPublic
func (*MockAlbyOAuthService_Expecter) UnlinkAccount ¶ added in v1.20.0
func (_e *MockAlbyOAuthService_Expecter) UnlinkAccount(ctx interface{}) *MockAlbyOAuthService_UnlinkAccount_Call
UnlinkAccount is a helper method to define mock.On call
- ctx
type MockAlbyOAuthService_GetAuthUrl_Call ¶ added in v1.20.0
MockAlbyOAuthService_GetAuthUrl_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAuthUrl'
func (*MockAlbyOAuthService_GetAuthUrl_Call) Return ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_GetAuthUrl_Call) Return(s string) *MockAlbyOAuthService_GetAuthUrl_Call
func (*MockAlbyOAuthService_GetAuthUrl_Call) Run ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_GetAuthUrl_Call) Run(run func()) *MockAlbyOAuthService_GetAuthUrl_Call
func (*MockAlbyOAuthService_GetAuthUrl_Call) RunAndReturn ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_GetAuthUrl_Call) RunAndReturn(run func() string) *MockAlbyOAuthService_GetAuthUrl_Call
type MockAlbyOAuthService_GetLSPChannelOffer_Call ¶ added in v1.20.0
MockAlbyOAuthService_GetLSPChannelOffer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLSPChannelOffer'
func (*MockAlbyOAuthService_GetLSPChannelOffer_Call) Return ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_GetLSPChannelOffer_Call) Return(lSPChannelOffer *alby.LSPChannelOffer, err error) *MockAlbyOAuthService_GetLSPChannelOffer_Call
func (*MockAlbyOAuthService_GetLSPChannelOffer_Call) Run ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_GetLSPChannelOffer_Call) Run(run func(ctx context.Context)) *MockAlbyOAuthService_GetLSPChannelOffer_Call
func (*MockAlbyOAuthService_GetLSPChannelOffer_Call) RunAndReturn ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_GetLSPChannelOffer_Call) RunAndReturn(run func(ctx context.Context) (*alby.LSPChannelOffer, error)) *MockAlbyOAuthService_GetLSPChannelOffer_Call
type MockAlbyOAuthService_GetLSPInfo_Call ¶ added in v1.20.0
MockAlbyOAuthService_GetLSPInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLSPInfo'
func (*MockAlbyOAuthService_GetLSPInfo_Call) Return ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_GetLSPInfo_Call) Return(lSPInfo *alby.LSPInfo, err error) *MockAlbyOAuthService_GetLSPInfo_Call
func (*MockAlbyOAuthService_GetLSPInfo_Call) Run ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_GetLSPInfo_Call) Run(run func(ctx context.Context, lsp string, network string)) *MockAlbyOAuthService_GetLSPInfo_Call
func (*MockAlbyOAuthService_GetLSPInfo_Call) RunAndReturn ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_GetLSPInfo_Call) RunAndReturn(run func(ctx context.Context, lsp string, network string) (*alby.LSPInfo, error)) *MockAlbyOAuthService_GetLSPInfo_Call
type MockAlbyOAuthService_GetLightningAddress_Call ¶ added in v1.20.0
MockAlbyOAuthService_GetLightningAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLightningAddress'
func (*MockAlbyOAuthService_GetLightningAddress_Call) Return ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_GetLightningAddress_Call) Return(s string, err error) *MockAlbyOAuthService_GetLightningAddress_Call
func (*MockAlbyOAuthService_GetLightningAddress_Call) Run ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_GetLightningAddress_Call) Run(run func()) *MockAlbyOAuthService_GetLightningAddress_Call
func (*MockAlbyOAuthService_GetLightningAddress_Call) RunAndReturn ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_GetLightningAddress_Call) RunAndReturn(run func() (string, error)) *MockAlbyOAuthService_GetLightningAddress_Call
type MockAlbyOAuthService_GetMe_Call ¶ added in v1.20.0
MockAlbyOAuthService_GetMe_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMe'
func (*MockAlbyOAuthService_GetMe_Call) Return ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_GetMe_Call) Return(albyMe *alby.AlbyMe, err error) *MockAlbyOAuthService_GetMe_Call
func (*MockAlbyOAuthService_GetMe_Call) Run ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_GetMe_Call) Run(run func(ctx context.Context)) *MockAlbyOAuthService_GetMe_Call
func (*MockAlbyOAuthService_GetMe_Call) RunAndReturn ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_GetMe_Call) RunAndReturn(run func(ctx context.Context) (*alby.AlbyMe, error)) *MockAlbyOAuthService_GetMe_Call
type MockAlbyOAuthService_GetUserIdentifier_Call ¶ added in v1.20.0
MockAlbyOAuthService_GetUserIdentifier_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserIdentifier'
func (*MockAlbyOAuthService_GetUserIdentifier_Call) Return ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_GetUserIdentifier_Call) Return(s string, err error) *MockAlbyOAuthService_GetUserIdentifier_Call
func (*MockAlbyOAuthService_GetUserIdentifier_Call) Run ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_GetUserIdentifier_Call) Run(run func()) *MockAlbyOAuthService_GetUserIdentifier_Call
func (*MockAlbyOAuthService_GetUserIdentifier_Call) RunAndReturn ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_GetUserIdentifier_Call) RunAndReturn(run func() (string, error)) *MockAlbyOAuthService_GetUserIdentifier_Call
type MockAlbyOAuthService_GetVssAuthToken_Call ¶ added in v1.20.0
MockAlbyOAuthService_GetVssAuthToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetVssAuthToken'
func (*MockAlbyOAuthService_GetVssAuthToken_Call) Return ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_GetVssAuthToken_Call) Return(s string, err error) *MockAlbyOAuthService_GetVssAuthToken_Call
func (*MockAlbyOAuthService_GetVssAuthToken_Call) Run ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_GetVssAuthToken_Call) Run(run func(ctx context.Context, nodeIdentifier string)) *MockAlbyOAuthService_GetVssAuthToken_Call
func (*MockAlbyOAuthService_GetVssAuthToken_Call) RunAndReturn ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_GetVssAuthToken_Call) RunAndReturn(run func(ctx context.Context, nodeIdentifier string) (string, error)) *MockAlbyOAuthService_GetVssAuthToken_Call
type MockAlbyOAuthService_IsConnected_Call ¶ added in v1.20.0
MockAlbyOAuthService_IsConnected_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsConnected'
func (*MockAlbyOAuthService_IsConnected_Call) Return ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_IsConnected_Call) Return(b bool) *MockAlbyOAuthService_IsConnected_Call
func (*MockAlbyOAuthService_IsConnected_Call) Run ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_IsConnected_Call) Run(run func(ctx context.Context)) *MockAlbyOAuthService_IsConnected_Call
func (*MockAlbyOAuthService_IsConnected_Call) RunAndReturn ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_IsConnected_Call) RunAndReturn(run func(ctx context.Context) bool) *MockAlbyOAuthService_IsConnected_Call
type MockAlbyOAuthService_LinkAccount_Call ¶ added in v1.20.0
MockAlbyOAuthService_LinkAccount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LinkAccount'
func (*MockAlbyOAuthService_LinkAccount_Call) Return ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_LinkAccount_Call) Return(err error) *MockAlbyOAuthService_LinkAccount_Call
func (*MockAlbyOAuthService_LinkAccount_Call) Run ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_LinkAccount_Call) Run(run func(ctx context.Context, lnClient lnclient.LNClient, budget uint64, renewal string)) *MockAlbyOAuthService_LinkAccount_Call
func (*MockAlbyOAuthService_LinkAccount_Call) RunAndReturn ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_LinkAccount_Call) RunAndReturn(run func(ctx context.Context, lnClient lnclient.LNClient, budget uint64, renewal string) error) *MockAlbyOAuthService_LinkAccount_Call
type MockAlbyOAuthService_RemoveOAuthAccessToken_Call ¶ added in v1.20.0
MockAlbyOAuthService_RemoveOAuthAccessToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveOAuthAccessToken'
func (*MockAlbyOAuthService_RemoveOAuthAccessToken_Call) Return ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_RemoveOAuthAccessToken_Call) Return(err error) *MockAlbyOAuthService_RemoveOAuthAccessToken_Call
func (*MockAlbyOAuthService_RemoveOAuthAccessToken_Call) Run ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_RemoveOAuthAccessToken_Call) Run(run func()) *MockAlbyOAuthService_RemoveOAuthAccessToken_Call
func (*MockAlbyOAuthService_RemoveOAuthAccessToken_Call) RunAndReturn ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_RemoveOAuthAccessToken_Call) RunAndReturn(run func() error) *MockAlbyOAuthService_RemoveOAuthAccessToken_Call
type MockAlbyOAuthService_RequestAutoChannel_Call ¶ added in v1.20.0
MockAlbyOAuthService_RequestAutoChannel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RequestAutoChannel'
func (*MockAlbyOAuthService_RequestAutoChannel_Call) Return ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_RequestAutoChannel_Call) Return(autoChannelResponse *alby.AutoChannelResponse, err error) *MockAlbyOAuthService_RequestAutoChannel_Call
func (*MockAlbyOAuthService_RequestAutoChannel_Call) Run ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_RequestAutoChannel_Call) Run(run func(ctx context.Context, lnClient lnclient.LNClient, isPublic bool)) *MockAlbyOAuthService_RequestAutoChannel_Call
func (*MockAlbyOAuthService_RequestAutoChannel_Call) RunAndReturn ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_RequestAutoChannel_Call) RunAndReturn(run func(ctx context.Context, lnClient lnclient.LNClient, isPublic bool) (*alby.AutoChannelResponse, error)) *MockAlbyOAuthService_RequestAutoChannel_Call
type MockAlbyOAuthService_UnlinkAccount_Call ¶ added in v1.20.0
MockAlbyOAuthService_UnlinkAccount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UnlinkAccount'
func (*MockAlbyOAuthService_UnlinkAccount_Call) Return ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_UnlinkAccount_Call) Return(err error) *MockAlbyOAuthService_UnlinkAccount_Call
func (*MockAlbyOAuthService_UnlinkAccount_Call) Run ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_UnlinkAccount_Call) Run(run func(ctx context.Context)) *MockAlbyOAuthService_UnlinkAccount_Call
func (*MockAlbyOAuthService_UnlinkAccount_Call) RunAndReturn ¶ added in v1.20.0
func (_c *MockAlbyOAuthService_UnlinkAccount_Call) RunAndReturn(run func(ctx context.Context) error) *MockAlbyOAuthService_UnlinkAccount_Call
type MockAlbyService ¶ added in v1.20.0
MockAlbyService is an autogenerated mock type for the AlbyService type
func NewMockAlbyService ¶ added in v1.20.0
func NewMockAlbyService(t interface {
mock.TestingT
Cleanup(func())
}) *MockAlbyService
NewMockAlbyService creates a new instance of MockAlbyService. 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 (*MockAlbyService) EXPECT ¶ added in v1.20.0
func (_m *MockAlbyService) EXPECT() *MockAlbyService_Expecter
func (*MockAlbyService) GetBitcoinRate ¶ added in v1.20.0
func (_mock *MockAlbyService) GetBitcoinRate(ctx context.Context) (*alby.BitcoinRate, error)
GetBitcoinRate provides a mock function for the type MockAlbyService
func (*MockAlbyService) GetChannelPeerSuggestions ¶ added in v1.20.0
func (_mock *MockAlbyService) GetChannelPeerSuggestions(ctx context.Context) ([]alby.ChannelPeerSuggestion, error)
GetChannelPeerSuggestions provides a mock function for the type MockAlbyService
type MockAlbyService_Expecter ¶ added in v1.20.0
type MockAlbyService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockAlbyService_Expecter) GetBitcoinRate ¶ added in v1.20.0
func (_e *MockAlbyService_Expecter) GetBitcoinRate(ctx interface{}) *MockAlbyService_GetBitcoinRate_Call
GetBitcoinRate is a helper method to define mock.On call
- ctx
func (*MockAlbyService_Expecter) GetChannelPeerSuggestions ¶ added in v1.20.0
func (_e *MockAlbyService_Expecter) GetChannelPeerSuggestions(ctx interface{}) *MockAlbyService_GetChannelPeerSuggestions_Call
GetChannelPeerSuggestions is a helper method to define mock.On call
- ctx
func (*MockAlbyService_Expecter) GetInfo ¶ added in v1.20.0
func (_e *MockAlbyService_Expecter) GetInfo(ctx interface{}) *MockAlbyService_GetInfo_Call
GetInfo is a helper method to define mock.On call
- ctx
type MockAlbyService_GetBitcoinRate_Call ¶ added in v1.20.0
MockAlbyService_GetBitcoinRate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBitcoinRate'
func (*MockAlbyService_GetBitcoinRate_Call) Return ¶ added in v1.20.0
func (_c *MockAlbyService_GetBitcoinRate_Call) Return(bitcoinRate *alby.BitcoinRate, err error) *MockAlbyService_GetBitcoinRate_Call
func (*MockAlbyService_GetBitcoinRate_Call) Run ¶ added in v1.20.0
func (_c *MockAlbyService_GetBitcoinRate_Call) Run(run func(ctx context.Context)) *MockAlbyService_GetBitcoinRate_Call
func (*MockAlbyService_GetBitcoinRate_Call) RunAndReturn ¶ added in v1.20.0
func (_c *MockAlbyService_GetBitcoinRate_Call) RunAndReturn(run func(ctx context.Context) (*alby.BitcoinRate, error)) *MockAlbyService_GetBitcoinRate_Call
type MockAlbyService_GetChannelPeerSuggestions_Call ¶ added in v1.20.0
MockAlbyService_GetChannelPeerSuggestions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetChannelPeerSuggestions'
func (*MockAlbyService_GetChannelPeerSuggestions_Call) Return ¶ added in v1.20.0
func (_c *MockAlbyService_GetChannelPeerSuggestions_Call) Return(channelPeerSuggestions []alby.ChannelPeerSuggestion, err error) *MockAlbyService_GetChannelPeerSuggestions_Call
func (*MockAlbyService_GetChannelPeerSuggestions_Call) Run ¶ added in v1.20.0
func (_c *MockAlbyService_GetChannelPeerSuggestions_Call) Run(run func(ctx context.Context)) *MockAlbyService_GetChannelPeerSuggestions_Call
func (*MockAlbyService_GetChannelPeerSuggestions_Call) RunAndReturn ¶ added in v1.20.0
func (_c *MockAlbyService_GetChannelPeerSuggestions_Call) RunAndReturn(run func(ctx context.Context) ([]alby.ChannelPeerSuggestion, error)) *MockAlbyService_GetChannelPeerSuggestions_Call
type MockAlbyService_GetInfo_Call ¶ added in v1.20.0
MockAlbyService_GetInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetInfo'
func (*MockAlbyService_GetInfo_Call) Return ¶ added in v1.20.0
func (_c *MockAlbyService_GetInfo_Call) Return(albyInfo *alby.AlbyInfo, err error) *MockAlbyService_GetInfo_Call
func (*MockAlbyService_GetInfo_Call) Run ¶ added in v1.20.0
func (_c *MockAlbyService_GetInfo_Call) Run(run func(ctx context.Context)) *MockAlbyService_GetInfo_Call
func (*MockAlbyService_GetInfo_Call) RunAndReturn ¶ added in v1.20.0
func (_c *MockAlbyService_GetInfo_Call) RunAndReturn(run func(ctx context.Context) (*alby.AlbyInfo, error)) *MockAlbyService_GetInfo_Call
type MockConfig ¶ added in v1.15.0
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) GetBitcoinDisplayFormat ¶ added in v1.21.0
func (_mock *MockConfig) GetBitcoinDisplayFormat() string
GetBitcoinDisplayFormat 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, error)
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) GetRelayUrls ¶ added in v1.21.0
func (_mock *MockConfig) GetRelayUrls() []string
GetRelayUrls 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) SetBitcoinDisplayFormat ¶ added in v1.21.0
func (_mock *MockConfig) SetBitcoinDisplayFormat(value string) error
SetBitcoinDisplayFormat 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
func (*MockConfig) Unlock ¶ added in v1.21.1
func (_mock *MockConfig) Unlock(encryptionKey string) error
Unlock provides a mock function for the type MockConfig
type MockConfig_ChangeUnlockPassword_Call ¶ added in v1.15.0
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 (_c *MockConfig_ChangeUnlockPassword_Call) Return(err error) *MockConfig_ChangeUnlockPassword_Call
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
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 (_c *MockConfig_CheckUnlockPassword_Call) Return(b bool) *MockConfig_CheckUnlockPassword_Call
func (*MockConfig_CheckUnlockPassword_Call) Run ¶ added in v1.15.0
func (_c *MockConfig_CheckUnlockPassword_Call) Run(run func(password string)) *MockConfig_CheckUnlockPassword_Call
func (*MockConfig_CheckUnlockPassword_Call) RunAndReturn ¶ added in v1.15.0
func (_c *MockConfig_CheckUnlockPassword_Call) RunAndReturn(run func(password string) bool) *MockConfig_CheckUnlockPassword_Call
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) GetBitcoinDisplayFormat ¶ added in v1.21.0
func (_e *MockConfig_Expecter) GetBitcoinDisplayFormat() *MockConfig_GetBitcoinDisplayFormat_Call
GetBitcoinDisplayFormat is a helper method to define mock.On call
func (*MockConfig_Expecter) GetCurrency ¶ added in v1.15.0
func (_e *MockConfig_Expecter) GetCurrency() *MockConfig_GetCurrency_Call
GetCurrency is a helper method to define mock.On call
func (*MockConfig_Expecter) GetEnv ¶ added in v1.15.0
func (_e *MockConfig_Expecter) GetEnv() *MockConfig_GetEnv_Call
GetEnv is a helper method to define mock.On call
func (*MockConfig_Expecter) GetJWTSecret ¶ added in v1.15.0
func (_e *MockConfig_Expecter) GetJWTSecret() *MockConfig_GetJWTSecret_Call
GetJWTSecret is a helper method to define mock.On call
func (*MockConfig_Expecter) GetMempoolUrl ¶ added in v1.18.0
func (_e *MockConfig_Expecter) GetMempoolUrl() *MockConfig_GetMempoolUrl_Call
GetMempoolUrl is a helper method to define mock.On call
func (*MockConfig_Expecter) GetNetwork ¶ added in v1.17.0
func (_e *MockConfig_Expecter) GetNetwork() *MockConfig_GetNetwork_Call
GetNetwork is a helper method to define mock.On call
func (*MockConfig_Expecter) GetRelayUrls ¶ added in v1.21.0
func (_e *MockConfig_Expecter) GetRelayUrls() *MockConfig_GetRelayUrls_Call
GetRelayUrls 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) SetBitcoinDisplayFormat ¶ added in v1.21.0
func (_e *MockConfig_Expecter) SetBitcoinDisplayFormat(value interface{}) *MockConfig_SetBitcoinDisplayFormat_Call
SetBitcoinDisplayFormat is a helper method to define mock.On call
- value
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
func (_e *MockConfig_Expecter) SetupCompleted() *MockConfig_SetupCompleted_Call
SetupCompleted is a helper method to define mock.On call
func (*MockConfig_Expecter) Unlock ¶ added in v1.21.1
func (_e *MockConfig_Expecter) Unlock(encryptionKey interface{}) *MockConfig_Unlock_Call
Unlock is a helper method to define mock.On call
- encryptionKey
type MockConfig_GetBitcoinDisplayFormat_Call ¶ added in v1.21.0
MockConfig_GetBitcoinDisplayFormat_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBitcoinDisplayFormat'
func (*MockConfig_GetBitcoinDisplayFormat_Call) Return ¶ added in v1.21.0
func (_c *MockConfig_GetBitcoinDisplayFormat_Call) Return(s string) *MockConfig_GetBitcoinDisplayFormat_Call
func (*MockConfig_GetBitcoinDisplayFormat_Call) Run ¶ added in v1.21.0
func (_c *MockConfig_GetBitcoinDisplayFormat_Call) Run(run func()) *MockConfig_GetBitcoinDisplayFormat_Call
func (*MockConfig_GetBitcoinDisplayFormat_Call) RunAndReturn ¶ added in v1.21.0
func (_c *MockConfig_GetBitcoinDisplayFormat_Call) RunAndReturn(run func() string) *MockConfig_GetBitcoinDisplayFormat_Call
type MockConfig_GetCurrency_Call ¶ added in v1.15.0
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 (_c *MockConfig_GetCurrency_Call) Return(s string) *MockConfig_GetCurrency_Call
func (*MockConfig_GetCurrency_Call) Run ¶ added in v1.15.0
func (_c *MockConfig_GetCurrency_Call) Run(run func()) *MockConfig_GetCurrency_Call
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
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 (_c *MockConfig_GetEnv_Call) Return(appConfig *config.AppConfig) *MockConfig_GetEnv_Call
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
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 (_c *MockConfig_GetJWTSecret_Call) Return(s string, err error) *MockConfig_GetJWTSecret_Call
func (*MockConfig_GetJWTSecret_Call) Run ¶ added in v1.15.0
func (_c *MockConfig_GetJWTSecret_Call) Run(run func()) *MockConfig_GetJWTSecret_Call
func (*MockConfig_GetJWTSecret_Call) RunAndReturn ¶ added in v1.15.0
func (_c *MockConfig_GetJWTSecret_Call) RunAndReturn(run func() (string, error)) *MockConfig_GetJWTSecret_Call
type MockConfig_GetMempoolUrl_Call ¶ added in v1.18.0
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 (_c *MockConfig_GetMempoolUrl_Call) Return(s string) *MockConfig_GetMempoolUrl_Call
func (*MockConfig_GetMempoolUrl_Call) Run ¶ added in v1.18.0
func (_c *MockConfig_GetMempoolUrl_Call) Run(run func()) *MockConfig_GetMempoolUrl_Call
func (*MockConfig_GetMempoolUrl_Call) RunAndReturn ¶ added in v1.18.0
func (_c *MockConfig_GetMempoolUrl_Call) RunAndReturn(run func() string) *MockConfig_GetMempoolUrl_Call
type MockConfig_GetNetwork_Call ¶ added in v1.17.0
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 (_c *MockConfig_GetNetwork_Call) Return(s string) *MockConfig_GetNetwork_Call
func (*MockConfig_GetNetwork_Call) Run ¶ added in v1.17.0
func (_c *MockConfig_GetNetwork_Call) Run(run func()) *MockConfig_GetNetwork_Call
func (*MockConfig_GetNetwork_Call) RunAndReturn ¶ added in v1.17.0
func (_c *MockConfig_GetNetwork_Call) RunAndReturn(run func() string) *MockConfig_GetNetwork_Call
type MockConfig_GetRelayUrls_Call ¶ added in v1.21.0
MockConfig_GetRelayUrls_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRelayUrls'
func (*MockConfig_GetRelayUrls_Call) Return ¶ added in v1.21.0
func (_c *MockConfig_GetRelayUrls_Call) Return(strings []string) *MockConfig_GetRelayUrls_Call
func (*MockConfig_GetRelayUrls_Call) Run ¶ added in v1.21.0
func (_c *MockConfig_GetRelayUrls_Call) Run(run func()) *MockConfig_GetRelayUrls_Call
func (*MockConfig_GetRelayUrls_Call) RunAndReturn ¶ added in v1.21.0
func (_c *MockConfig_GetRelayUrls_Call) RunAndReturn(run func() []string) *MockConfig_GetRelayUrls_Call
type MockConfig_Get_Call ¶ added in v1.15.0
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 (_c *MockConfig_Get_Call) Return(s string, err error) *MockConfig_Get_Call
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
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 (_c *MockConfig_SaveUnlockPasswordCheck_Call) Return(err error) *MockConfig_SaveUnlockPasswordCheck_Call
func (*MockConfig_SaveUnlockPasswordCheck_Call) Run ¶ added in v1.15.0
func (_c *MockConfig_SaveUnlockPasswordCheck_Call) Run(run func(encryptionKey string)) *MockConfig_SaveUnlockPasswordCheck_Call
func (*MockConfig_SaveUnlockPasswordCheck_Call) RunAndReturn ¶ added in v1.15.0
func (_c *MockConfig_SaveUnlockPasswordCheck_Call) RunAndReturn(run func(encryptionKey string) error) *MockConfig_SaveUnlockPasswordCheck_Call
type MockConfig_SetAutoUnlockPassword_Call ¶ added in v1.15.0
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 (_c *MockConfig_SetAutoUnlockPassword_Call) Return(err error) *MockConfig_SetAutoUnlockPassword_Call
func (*MockConfig_SetAutoUnlockPassword_Call) Run ¶ added in v1.15.0
func (_c *MockConfig_SetAutoUnlockPassword_Call) Run(run func(unlockPassword string)) *MockConfig_SetAutoUnlockPassword_Call
func (*MockConfig_SetAutoUnlockPassword_Call) RunAndReturn ¶ added in v1.15.0
func (_c *MockConfig_SetAutoUnlockPassword_Call) RunAndReturn(run func(unlockPassword string) error) *MockConfig_SetAutoUnlockPassword_Call
type MockConfig_SetBitcoinDisplayFormat_Call ¶ added in v1.21.0
MockConfig_SetBitcoinDisplayFormat_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetBitcoinDisplayFormat'
func (*MockConfig_SetBitcoinDisplayFormat_Call) Return ¶ added in v1.21.0
func (_c *MockConfig_SetBitcoinDisplayFormat_Call) Return(err error) *MockConfig_SetBitcoinDisplayFormat_Call
func (*MockConfig_SetBitcoinDisplayFormat_Call) Run ¶ added in v1.21.0
func (_c *MockConfig_SetBitcoinDisplayFormat_Call) Run(run func(value string)) *MockConfig_SetBitcoinDisplayFormat_Call
func (*MockConfig_SetBitcoinDisplayFormat_Call) RunAndReturn ¶ added in v1.21.0
func (_c *MockConfig_SetBitcoinDisplayFormat_Call) RunAndReturn(run func(value string) error) *MockConfig_SetBitcoinDisplayFormat_Call
type MockConfig_SetCurrency_Call ¶ added in v1.15.0
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 (_c *MockConfig_SetCurrency_Call) Return(err error) *MockConfig_SetCurrency_Call
func (*MockConfig_SetCurrency_Call) Run ¶ added in v1.15.0
func (_c *MockConfig_SetCurrency_Call) Run(run func(value string)) *MockConfig_SetCurrency_Call
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
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 (_c *MockConfig_SetIgnore_Call) Return(err error) *MockConfig_SetIgnore_Call
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
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 (_c *MockConfig_SetUpdate_Call) Return(err error) *MockConfig_SetUpdate_Call
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
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 (_c *MockConfig_SetupCompleted_Call) Return(b bool) *MockConfig_SetupCompleted_Call
func (*MockConfig_SetupCompleted_Call) Run ¶ added in v1.15.0
func (_c *MockConfig_SetupCompleted_Call) Run(run func()) *MockConfig_SetupCompleted_Call
func (*MockConfig_SetupCompleted_Call) RunAndReturn ¶ added in v1.15.0
func (_c *MockConfig_SetupCompleted_Call) RunAndReturn(run func() bool) *MockConfig_SetupCompleted_Call
type MockConfig_Unlock_Call ¶ added in v1.21.1
MockConfig_Unlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unlock'
func (*MockConfig_Unlock_Call) Return ¶ added in v1.21.1
func (_c *MockConfig_Unlock_Call) Return(err error) *MockConfig_Unlock_Call
func (*MockConfig_Unlock_Call) Run ¶ added in v1.21.1
func (_c *MockConfig_Unlock_Call) Run(run func(encryptionKey string)) *MockConfig_Unlock_Call
func (*MockConfig_Unlock_Call) RunAndReturn ¶ added in v1.21.1
func (_c *MockConfig_Unlock_Call) RunAndReturn(run func(encryptionKey string) error) *MockConfig_Unlock_Call
type MockEventPublisher ¶ added in v1.20.0
MockEventPublisher is an autogenerated mock type for the EventPublisher type
func NewMockEventPublisher ¶ added in v1.20.0
func NewMockEventPublisher(t interface {
mock.TestingT
Cleanup(func())
}) *MockEventPublisher
NewMockEventPublisher creates a new instance of MockEventPublisher. 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 (*MockEventPublisher) EXPECT ¶ added in v1.20.0
func (_m *MockEventPublisher) EXPECT() *MockEventPublisher_Expecter
func (*MockEventPublisher) Publish ¶ added in v1.20.0
func (_mock *MockEventPublisher) Publish(event *events.Event)
Publish provides a mock function for the type MockEventPublisher
func (*MockEventPublisher) PublishSync ¶ added in v1.20.0
func (_mock *MockEventPublisher) PublishSync(event *events.Event)
PublishSync provides a mock function for the type MockEventPublisher
func (*MockEventPublisher) RegisterSubscriber ¶ added in v1.20.0
func (_mock *MockEventPublisher) RegisterSubscriber(eventListener events.EventSubscriber)
RegisterSubscriber provides a mock function for the type MockEventPublisher
func (*MockEventPublisher) RemoveSubscriber ¶ added in v1.20.0
func (_mock *MockEventPublisher) RemoveSubscriber(eventListener events.EventSubscriber)
RemoveSubscriber provides a mock function for the type MockEventPublisher
func (*MockEventPublisher) SetGlobalProperty ¶ added in v1.20.0
func (_mock *MockEventPublisher) SetGlobalProperty(key string, value interface{})
SetGlobalProperty provides a mock function for the type MockEventPublisher
type MockEventPublisher_Expecter ¶ added in v1.20.0
type MockEventPublisher_Expecter struct {
// contains filtered or unexported fields
}
func (*MockEventPublisher_Expecter) Publish ¶ added in v1.20.0
func (_e *MockEventPublisher_Expecter) Publish(event interface{}) *MockEventPublisher_Publish_Call
Publish is a helper method to define mock.On call
- event
func (*MockEventPublisher_Expecter) PublishSync ¶ added in v1.20.0
func (_e *MockEventPublisher_Expecter) PublishSync(event interface{}) *MockEventPublisher_PublishSync_Call
PublishSync is a helper method to define mock.On call
- event
func (*MockEventPublisher_Expecter) RegisterSubscriber ¶ added in v1.20.0
func (_e *MockEventPublisher_Expecter) RegisterSubscriber(eventListener interface{}) *MockEventPublisher_RegisterSubscriber_Call
RegisterSubscriber is a helper method to define mock.On call
- eventListener
func (*MockEventPublisher_Expecter) RemoveSubscriber ¶ added in v1.20.0
func (_e *MockEventPublisher_Expecter) RemoveSubscriber(eventListener interface{}) *MockEventPublisher_RemoveSubscriber_Call
RemoveSubscriber is a helper method to define mock.On call
- eventListener
func (*MockEventPublisher_Expecter) SetGlobalProperty ¶ added in v1.20.0
func (_e *MockEventPublisher_Expecter) SetGlobalProperty(key interface{}, value interface{}) *MockEventPublisher_SetGlobalProperty_Call
SetGlobalProperty is a helper method to define mock.On call
- key
- value
type MockEventPublisher_PublishSync_Call ¶ added in v1.20.0
MockEventPublisher_PublishSync_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PublishSync'
func (*MockEventPublisher_PublishSync_Call) Return ¶ added in v1.20.0
func (_c *MockEventPublisher_PublishSync_Call) Return() *MockEventPublisher_PublishSync_Call
func (*MockEventPublisher_PublishSync_Call) Run ¶ added in v1.20.0
func (_c *MockEventPublisher_PublishSync_Call) Run(run func(event *events.Event)) *MockEventPublisher_PublishSync_Call
func (*MockEventPublisher_PublishSync_Call) RunAndReturn ¶ added in v1.20.0
func (_c *MockEventPublisher_PublishSync_Call) RunAndReturn(run func(event *events.Event)) *MockEventPublisher_PublishSync_Call
type MockEventPublisher_Publish_Call ¶ added in v1.20.0
MockEventPublisher_Publish_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Publish'
func (*MockEventPublisher_Publish_Call) Return ¶ added in v1.20.0
func (_c *MockEventPublisher_Publish_Call) Return() *MockEventPublisher_Publish_Call
func (*MockEventPublisher_Publish_Call) Run ¶ added in v1.20.0
func (_c *MockEventPublisher_Publish_Call) Run(run func(event *events.Event)) *MockEventPublisher_Publish_Call
func (*MockEventPublisher_Publish_Call) RunAndReturn ¶ added in v1.20.0
func (_c *MockEventPublisher_Publish_Call) RunAndReturn(run func(event *events.Event)) *MockEventPublisher_Publish_Call
type MockEventPublisher_RegisterSubscriber_Call ¶ added in v1.20.0
MockEventPublisher_RegisterSubscriber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RegisterSubscriber'
func (*MockEventPublisher_RegisterSubscriber_Call) Return ¶ added in v1.20.0
func (_c *MockEventPublisher_RegisterSubscriber_Call) Return() *MockEventPublisher_RegisterSubscriber_Call
func (*MockEventPublisher_RegisterSubscriber_Call) Run ¶ added in v1.20.0
func (_c *MockEventPublisher_RegisterSubscriber_Call) Run(run func(eventListener events.EventSubscriber)) *MockEventPublisher_RegisterSubscriber_Call
func (*MockEventPublisher_RegisterSubscriber_Call) RunAndReturn ¶ added in v1.20.0
func (_c *MockEventPublisher_RegisterSubscriber_Call) RunAndReturn(run func(eventListener events.EventSubscriber)) *MockEventPublisher_RegisterSubscriber_Call
type MockEventPublisher_RemoveSubscriber_Call ¶ added in v1.20.0
MockEventPublisher_RemoveSubscriber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveSubscriber'
func (*MockEventPublisher_RemoveSubscriber_Call) Return ¶ added in v1.20.0
func (_c *MockEventPublisher_RemoveSubscriber_Call) Return() *MockEventPublisher_RemoveSubscriber_Call
func (*MockEventPublisher_RemoveSubscriber_Call) Run ¶ added in v1.20.0
func (_c *MockEventPublisher_RemoveSubscriber_Call) Run(run func(eventListener events.EventSubscriber)) *MockEventPublisher_RemoveSubscriber_Call
func (*MockEventPublisher_RemoveSubscriber_Call) RunAndReturn ¶ added in v1.20.0
func (_c *MockEventPublisher_RemoveSubscriber_Call) RunAndReturn(run func(eventListener events.EventSubscriber)) *MockEventPublisher_RemoveSubscriber_Call
type MockEventPublisher_SetGlobalProperty_Call ¶ added in v1.20.0
MockEventPublisher_SetGlobalProperty_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetGlobalProperty'
func (*MockEventPublisher_SetGlobalProperty_Call) Return ¶ added in v1.20.0
func (_c *MockEventPublisher_SetGlobalProperty_Call) Return() *MockEventPublisher_SetGlobalProperty_Call
func (*MockEventPublisher_SetGlobalProperty_Call) Run ¶ added in v1.20.0
func (_c *MockEventPublisher_SetGlobalProperty_Call) Run(run func(key string, value interface{})) *MockEventPublisher_SetGlobalProperty_Call
func (*MockEventPublisher_SetGlobalProperty_Call) RunAndReturn ¶ added in v1.20.0
func (_c *MockEventPublisher_SetGlobalProperty_Call) RunAndReturn(run func(key string, value interface{})) *MockEventPublisher_SetGlobalProperty_Call
type MockKeys ¶ added in v1.20.0
MockKeys is an autogenerated mock type for the Keys type
func NewMockKeys ¶ added in v1.20.0
NewMockKeys creates a new instance of MockKeys. 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 (*MockKeys) DeriveKey ¶ added in v1.20.0
DeriveKey provides a mock function for the type MockKeys
func (*MockKeys) EXPECT ¶ added in v1.20.0
func (_m *MockKeys) EXPECT() *MockKeys_Expecter
func (*MockKeys) GetAppWalletKey ¶ added in v1.20.0
GetAppWalletKey provides a mock function for the type MockKeys
func (*MockKeys) GetNostrPublicKey ¶ added in v1.20.0
GetNostrPublicKey provides a mock function for the type MockKeys
func (*MockKeys) GetNostrSecretKey ¶ added in v1.20.0
GetNostrSecretKey provides a mock function for the type MockKeys
func (*MockKeys) GetSwapKey ¶ added in v1.20.0
func (_mock *MockKeys) GetSwapKey(childIndex uint) (*btcec.PrivateKey, error)
GetSwapKey provides a mock function for the type MockKeys
func (*MockKeys) GetSwapMnemonic ¶ added in v1.20.0
GetSwapMnemonic provides a mock function for the type MockKeys
type MockKeys_DeriveKey_Call ¶ added in v1.20.0
MockKeys_DeriveKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeriveKey'
func (*MockKeys_DeriveKey_Call) Return ¶ added in v1.20.0
func (_c *MockKeys_DeriveKey_Call) Return(key *bip32.Key, err error) *MockKeys_DeriveKey_Call
func (*MockKeys_DeriveKey_Call) Run ¶ added in v1.20.0
func (_c *MockKeys_DeriveKey_Call) Run(run func(path []uint32)) *MockKeys_DeriveKey_Call
func (*MockKeys_DeriveKey_Call) RunAndReturn ¶ added in v1.20.0
func (_c *MockKeys_DeriveKey_Call) RunAndReturn(run func(path []uint32) (*bip32.Key, error)) *MockKeys_DeriveKey_Call
type MockKeys_Expecter ¶ added in v1.20.0
type MockKeys_Expecter struct {
// contains filtered or unexported fields
}
func (*MockKeys_Expecter) DeriveKey ¶ added in v1.20.0
func (_e *MockKeys_Expecter) DeriveKey(path interface{}) *MockKeys_DeriveKey_Call
DeriveKey is a helper method to define mock.On call
- path
func (*MockKeys_Expecter) GetAppWalletKey ¶ added in v1.20.0
func (_e *MockKeys_Expecter) GetAppWalletKey(childIndex interface{}) *MockKeys_GetAppWalletKey_Call
GetAppWalletKey is a helper method to define mock.On call
- childIndex
func (*MockKeys_Expecter) GetNostrPublicKey ¶ added in v1.20.0
func (_e *MockKeys_Expecter) GetNostrPublicKey() *MockKeys_GetNostrPublicKey_Call
GetNostrPublicKey is a helper method to define mock.On call
func (*MockKeys_Expecter) GetNostrSecretKey ¶ added in v1.20.0
func (_e *MockKeys_Expecter) GetNostrSecretKey() *MockKeys_GetNostrSecretKey_Call
GetNostrSecretKey is a helper method to define mock.On call
func (*MockKeys_Expecter) GetSwapKey ¶ added in v1.20.0
func (_e *MockKeys_Expecter) GetSwapKey(childIndex interface{}) *MockKeys_GetSwapKey_Call
GetSwapKey is a helper method to define mock.On call
- childIndex
func (*MockKeys_Expecter) GetSwapMnemonic ¶ added in v1.20.0
func (_e *MockKeys_Expecter) GetSwapMnemonic() *MockKeys_GetSwapMnemonic_Call
GetSwapMnemonic is a helper method to define mock.On call
func (*MockKeys_Expecter) Init ¶ added in v1.20.0
func (_e *MockKeys_Expecter) Init(cfg interface{}, encryptionKey interface{}) *MockKeys_Init_Call
Init is a helper method to define mock.On call
- cfg
- encryptionKey
type MockKeys_GetAppWalletKey_Call ¶ added in v1.20.0
MockKeys_GetAppWalletKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAppWalletKey'
func (*MockKeys_GetAppWalletKey_Call) Return ¶ added in v1.20.0
func (_c *MockKeys_GetAppWalletKey_Call) Return(s string, err error) *MockKeys_GetAppWalletKey_Call
func (*MockKeys_GetAppWalletKey_Call) Run ¶ added in v1.20.0
func (_c *MockKeys_GetAppWalletKey_Call) Run(run func(childIndex uint)) *MockKeys_GetAppWalletKey_Call
func (*MockKeys_GetAppWalletKey_Call) RunAndReturn ¶ added in v1.20.0
func (_c *MockKeys_GetAppWalletKey_Call) RunAndReturn(run func(childIndex uint) (string, error)) *MockKeys_GetAppWalletKey_Call
type MockKeys_GetNostrPublicKey_Call ¶ added in v1.20.0
MockKeys_GetNostrPublicKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNostrPublicKey'
func (*MockKeys_GetNostrPublicKey_Call) Return ¶ added in v1.20.0
func (_c *MockKeys_GetNostrPublicKey_Call) Return(s string) *MockKeys_GetNostrPublicKey_Call
func (*MockKeys_GetNostrPublicKey_Call) Run ¶ added in v1.20.0
func (_c *MockKeys_GetNostrPublicKey_Call) Run(run func()) *MockKeys_GetNostrPublicKey_Call
func (*MockKeys_GetNostrPublicKey_Call) RunAndReturn ¶ added in v1.20.0
func (_c *MockKeys_GetNostrPublicKey_Call) RunAndReturn(run func() string) *MockKeys_GetNostrPublicKey_Call
type MockKeys_GetNostrSecretKey_Call ¶ added in v1.20.0
MockKeys_GetNostrSecretKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNostrSecretKey'
func (*MockKeys_GetNostrSecretKey_Call) Return ¶ added in v1.20.0
func (_c *MockKeys_GetNostrSecretKey_Call) Return(s string) *MockKeys_GetNostrSecretKey_Call
func (*MockKeys_GetNostrSecretKey_Call) Run ¶ added in v1.20.0
func (_c *MockKeys_GetNostrSecretKey_Call) Run(run func()) *MockKeys_GetNostrSecretKey_Call
func (*MockKeys_GetNostrSecretKey_Call) RunAndReturn ¶ added in v1.20.0
func (_c *MockKeys_GetNostrSecretKey_Call) RunAndReturn(run func() string) *MockKeys_GetNostrSecretKey_Call
type MockKeys_GetSwapKey_Call ¶ added in v1.20.0
MockKeys_GetSwapKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSwapKey'
func (*MockKeys_GetSwapKey_Call) Return ¶ added in v1.20.0
func (_c *MockKeys_GetSwapKey_Call) Return(v *btcec.PrivateKey, err error) *MockKeys_GetSwapKey_Call
func (*MockKeys_GetSwapKey_Call) Run ¶ added in v1.20.0
func (_c *MockKeys_GetSwapKey_Call) Run(run func(childIndex uint)) *MockKeys_GetSwapKey_Call
func (*MockKeys_GetSwapKey_Call) RunAndReturn ¶ added in v1.20.0
func (_c *MockKeys_GetSwapKey_Call) RunAndReturn(run func(childIndex uint) (*btcec.PrivateKey, error)) *MockKeys_GetSwapKey_Call
type MockKeys_GetSwapMnemonic_Call ¶ added in v1.20.0
MockKeys_GetSwapMnemonic_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSwapMnemonic'
func (*MockKeys_GetSwapMnemonic_Call) Return ¶ added in v1.20.0
func (_c *MockKeys_GetSwapMnemonic_Call) Return(s string) *MockKeys_GetSwapMnemonic_Call
func (*MockKeys_GetSwapMnemonic_Call) Run ¶ added in v1.20.0
func (_c *MockKeys_GetSwapMnemonic_Call) Run(run func()) *MockKeys_GetSwapMnemonic_Call
func (*MockKeys_GetSwapMnemonic_Call) RunAndReturn ¶ added in v1.20.0
func (_c *MockKeys_GetSwapMnemonic_Call) RunAndReturn(run func() string) *MockKeys_GetSwapMnemonic_Call
type MockKeys_Init_Call ¶ added in v1.20.0
MockKeys_Init_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Init'
func (*MockKeys_Init_Call) Return ¶ added in v1.20.0
func (_c *MockKeys_Init_Call) Return(err error) *MockKeys_Init_Call
func (*MockKeys_Init_Call) Run ¶ added in v1.20.0
func (_c *MockKeys_Init_Call) Run(run func(cfg config.Config, encryptionKey string)) *MockKeys_Init_Call
func (*MockKeys_Init_Call) RunAndReturn ¶ added in v1.20.0
func (_c *MockKeys_Init_Call) RunAndReturn(run func(cfg config.Config, encryptionKey string) error) *MockKeys_Init_Call
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) 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) GetLogOutput ¶
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 ¶
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, throughNodePubkey *string) (*lnclient.Transaction, error)
MakeInvoice provides a mock function for the type MockLNClient
func (*MockLNClient) MakeOffer ¶ added in v1.18.0
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(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(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 ¶
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
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 (_c *MockLNClient_CancelHoldInvoice_Call) Return(err error) *MockLNClient_CancelHoldInvoice_Call
func (*MockLNClient_CancelHoldInvoice_Call) Run ¶ added in v1.18.0
func (_c *MockLNClient_CancelHoldInvoice_Call) Run(run func(ctx context.Context, paymentHash string)) *MockLNClient_CancelHoldInvoice_Call
func (*MockLNClient_CancelHoldInvoice_Call) RunAndReturn ¶ added in v1.18.0
func (_c *MockLNClient_CancelHoldInvoice_Call) RunAndReturn(run func(ctx context.Context, paymentHash string) error) *MockLNClient_CancelHoldInvoice_Call
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(closeChannelResponse *lnclient.CloseChannelResponse, err 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(ctx context.Context, closeChannelRequest *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(err 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(ctx context.Context, connectPeerRequest *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(err 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(ctx context.Context, peerId 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(customNodeCommandResponse *lnclient.CustomNodeCommandResponse, err 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(ctx context.Context, command *lnclient.CustomNodeCommandRequest) (*lnclient.CustomNodeCommandResponse, error)) *MockLNClient_ExecuteCustomNodeCommand_Call
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 ¶
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
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{}, throughNodePubkey interface{}) *MockLNClient_MakeInvoice_Call
MakeInvoice is a helper method to define mock.On call
- ctx
- amount
- description
- descriptionHash
- expiry
- throughNodePubkey
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(amount interface{}, destination interface{}, customRecords interface{}, preimage interface{}) *MockLNClient_SendKeysend_Call
SendKeysend is a helper method to define mock.On call
- 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(payReq interface{}, amount interface{}) *MockLNClient_SendPaymentSync_Call
SendPaymentSync is a helper method to define mock.On call
- 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 ¶
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
- 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 ¶
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(balancesResponse *lnclient.BalancesResponse, err error) *MockLNClient_GetBalances_Call
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 ¶
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 (_c *MockLNClient_GetCustomNodeCommandDefinitions_Call) Return(customNodeCommandDefs []lnclient.CustomNodeCommandDef) *MockLNClient_GetCustomNodeCommandDefinitions_Call
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(ctx 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(bytes []byte, err 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(ctx context.Context, maxLen 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(v lnclient.NetworkGraphResponse, err 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(ctx context.Context, nodeIds []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(s string, err 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(ctx 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(ctx 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(ctx 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(onchainBalanceResponse *lnclient.OnchainBalanceResponse, err 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(ctx 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(s 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(s string, err 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(strings []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(strings []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(ctx context.Context) ([]lnclient.Channel, error)) *MockLNClient_ListChannels_Call
type MockLNClient_ListOnchainTransactions_Call ¶ added in v1.17.0
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 (_c *MockLNClient_ListOnchainTransactions_Call) Return(onchainTransactions []lnclient.OnchainTransaction, err error) *MockLNClient_ListOnchainTransactions_Call
func (*MockLNClient_ListOnchainTransactions_Call) Run ¶ added in v1.17.0
func (_c *MockLNClient_ListOnchainTransactions_Call) Run(run func(ctx context.Context)) *MockLNClient_ListOnchainTransactions_Call
func (*MockLNClient_ListOnchainTransactions_Call) RunAndReturn ¶ added in v1.17.0
func (_c *MockLNClient_ListOnchainTransactions_Call) RunAndReturn(run func(ctx context.Context) ([]lnclient.OnchainTransaction, error)) *MockLNClient_ListOnchainTransactions_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(peerDetailss []lnclient.PeerDetails, err 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(ctx 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(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 ¶
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(ctx context.Context, paymentHash string) (*lnclient.Transaction, error)) *MockLNClient_LookupInvoice_Call
type MockLNClient_MakeHoldInvoice_Call ¶ added in v1.18.0
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 (_c *MockLNClient_MakeHoldInvoice_Call) Return(transaction *lnclient.Transaction, err error) *MockLNClient_MakeHoldInvoice_Call
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 ¶
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, throughNodePubkey *string)) *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, throughNodePubkey *string) (*lnclient.Transaction, error)) *MockLNClient_MakeInvoice_Call
type MockLNClient_MakeOffer_Call ¶ added in v1.18.0
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 (_c *MockLNClient_MakeOffer_Call) Return(s string, err error) *MockLNClient_MakeOffer_Call
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 ¶
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(openChannelResponse *lnclient.OpenChannelResponse, err 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(ctx context.Context, openChannelRequest *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, 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 ¶
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(err 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(key 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(payKeysendResponse *lnclient.PayKeysendResponse, err error) *MockLNClient_SendKeysend_Call
func (*MockLNClient_SendKeysend_Call) Run ¶
func (_c *MockLNClient_SendKeysend_Call) Run(run func(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(amount uint64, destination string, customRecords []lnclient.TLVRecord, preimage 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(err 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(ctx context.Context, invoice 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(payInvoiceResponse *lnclient.PayInvoiceResponse, err error) *MockLNClient_SendPaymentSync_Call
func (*MockLNClient_SendPaymentSync_Call) Run ¶
func (_c *MockLNClient_SendPaymentSync_Call) Run(run func(payReq string, amount *uint64)) *MockLNClient_SendPaymentSync_Call
func (*MockLNClient_SendPaymentSync_Call) RunAndReturn ¶
func (_c *MockLNClient_SendPaymentSync_Call) RunAndReturn(run func(payReq string, amount *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(err 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(ctx context.Context, amountMsat uint64, nodeId string) error) *MockLNClient_SendSpontaneousPaymentProbes_Call
type MockLNClient_SettleHoldInvoice_Call ¶ added in v1.18.0
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 (_c *MockLNClient_SettleHoldInvoice_Call) Return(err error) *MockLNClient_SettleHoldInvoice_Call
func (*MockLNClient_SettleHoldInvoice_Call) Run ¶ added in v1.18.0
func (_c *MockLNClient_SettleHoldInvoice_Call) Run(run func(ctx context.Context, preimage string)) *MockLNClient_SettleHoldInvoice_Call
func (*MockLNClient_SettleHoldInvoice_Call) RunAndReturn ¶ added in v1.18.0
func (_c *MockLNClient_SettleHoldInvoice_Call) RunAndReturn(run func(ctx context.Context, preimage string) error) *MockLNClient_SettleHoldInvoice_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(err 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(s string, err 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(ctx context.Context, message 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(err 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(ctx context.Context, updateChannelRequest *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 (_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) GetRelayStatuses ¶ added in v1.21.0
func (_mock *MockService) GetRelayStatuses() []service.RelayStatus
GetRelayStatuses 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) 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 ¶
func (_e *MockService_Expecter) GetAlbyOAuthSvc() *MockService_GetAlbyOAuthSvc_Call
GetAlbyOAuthSvc is a helper method to define mock.On call
func (*MockService_Expecter) GetAlbySvc ¶ added in v1.19.0
func (_e *MockService_Expecter) GetAlbySvc() *MockService_GetAlbySvc_Call
GetAlbySvc 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) GetRelayStatuses ¶ added in v1.21.0
func (_e *MockService_Expecter) GetRelayStatuses() *MockService_GetRelayStatuses_Call
GetRelayStatuses 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) GetSwapsService ¶ added in v1.17.0
func (_e *MockService_Expecter) GetSwapsService() *MockService_GetSwapsService_Call
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) 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
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(albyOAuthService 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_GetAlbySvc_Call ¶ added in v1.19.0
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 (_c *MockService_GetAlbySvc_Call) Return(albyService alby.AlbyService) *MockService_GetAlbySvc_Call
func (*MockService_GetAlbySvc_Call) Run ¶ added in v1.19.0
func (_c *MockService_GetAlbySvc_Call) Run(run func()) *MockService_GetAlbySvc_Call
func (*MockService_GetAlbySvc_Call) RunAndReturn ¶ added in v1.19.0
func (_c *MockService_GetAlbySvc_Call) RunAndReturn(run func() alby.AlbyService) *MockService_GetAlbySvc_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(config1 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(dB *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(eventPublisher 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(keys1 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(lNClient 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_GetRelayStatuses_Call ¶ added in v1.21.0
MockService_GetRelayStatuses_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRelayStatuses'
func (*MockService_GetRelayStatuses_Call) Return ¶ added in v1.21.0
func (_c *MockService_GetRelayStatuses_Call) Return(relayStatuss []service.RelayStatus) *MockService_GetRelayStatuses_Call
func (*MockService_GetRelayStatuses_Call) Run ¶ added in v1.21.0
func (_c *MockService_GetRelayStatuses_Call) Run(run func()) *MockService_GetRelayStatuses_Call
func (*MockService_GetRelayStatuses_Call) RunAndReturn ¶ added in v1.21.0
func (_c *MockService_GetRelayStatuses_Call) RunAndReturn(run func() []service.RelayStatus) *MockService_GetRelayStatuses_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(s 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_GetSwapsService_Call ¶ added in v1.17.0
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 (_c *MockService_GetSwapsService_Call) Return(swapsService swaps.SwapsService) *MockService_GetSwapsService_Call
func (*MockService_GetSwapsService_Call) Run ¶ added in v1.17.0
func (_c *MockService_GetSwapsService_Call) Run(run func()) *MockService_GetSwapsService_Call
func (*MockService_GetSwapsService_Call) RunAndReturn ¶ added in v1.17.0
func (_c *MockService_GetSwapsService_Call) RunAndReturn(run func() swaps.SwapsService) *MockService_GetSwapsService_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) Return ¶
func (_c *MockService_GetTransactionsService_Call) Return(transactionsService transactions.TransactionsService) *MockService_GetTransactionsService_Call
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_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(err 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(encryptionKey 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