Documentation
¶
Index ¶
- type MockLightningNode
- func (_mock *MockLightningNode) ApplyTransaction(txHex string) error
- func (_mock *MockLightningNode) BumpTransactionFee(txId string, satPerVbyte float64) (string, error)
- func (_mock *MockLightningNode) CheckInvoicePaid(paymentHash []byte) (bool, error)
- func (_mock *MockLightningNode) Connect() error
- func (_mock *MockLightningNode) CreateInvoice(value uint64, preimage []byte, expiry int64, memo string) (*lightning.AddInvoiceResponse, error)
- func (_mock *MockLightningNode) Disconnect() error
- func (_m *MockLightningNode) EXPECT() *MockLightningNode_Expecter
- func (_mock *MockLightningNode) FullScan() error
- func (_mock *MockLightningNode) GetBalance() (*onchain.Balance, error)
- func (_mock *MockLightningNode) GetInfo() (*lightning.LightningInfo, error)
- func (_mock *MockLightningNode) GetOutputs(address string) ([]*onchain.Output, error)
- func (_mock *MockLightningNode) GetSendFee(args onchain.WalletSendArgs) (uint64, uint64, error)
- func (_mock *MockLightningNode) GetTransactions(limit uint64, offset uint64) ([]*onchain.WalletTransaction, error)
- func (_mock *MockLightningNode) GetWalletInfo() onchain.WalletInfo
- func (_mock *MockLightningNode) ListChannels() ([]*lightning.LightningChannel, error)
- func (_mock *MockLightningNode) Name() string
- func (_mock *MockLightningNode) NewAddress() (string, error)
- func (_mock *MockLightningNode) PayInvoice(ctx context.Context, invoice string, feeLimit uint, timeoutSeconds uint, ...) (*lightning.PayInvoiceResponse, error)
- func (_mock *MockLightningNode) PaymentStatus(paymentHash []byte) (*lightning.PaymentStatus, error)
- func (_mock *MockLightningNode) Ready() bool
- func (_mock *MockLightningNode) SendToAddress(args onchain.WalletSendArgs) (string, error)
- func (_mock *MockLightningNode) SetupWallet(info onchain.WalletInfo)
- func (_mock *MockLightningNode) Sync() error
- type MockLightningNode_ApplyTransaction_Call
- func (_c *MockLightningNode_ApplyTransaction_Call) Return(err error) *MockLightningNode_ApplyTransaction_Call
- func (_c *MockLightningNode_ApplyTransaction_Call) Run(run func(txHex string)) *MockLightningNode_ApplyTransaction_Call
- func (_c *MockLightningNode_ApplyTransaction_Call) RunAndReturn(run func(txHex string) error) *MockLightningNode_ApplyTransaction_Call
- type MockLightningNode_BumpTransactionFee_Call
- func (_c *MockLightningNode_BumpTransactionFee_Call) Return(s string, err error) *MockLightningNode_BumpTransactionFee_Call
- func (_c *MockLightningNode_BumpTransactionFee_Call) Run(run func(txId string, satPerVbyte float64)) *MockLightningNode_BumpTransactionFee_Call
- func (_c *MockLightningNode_BumpTransactionFee_Call) RunAndReturn(run func(txId string, satPerVbyte float64) (string, error)) *MockLightningNode_BumpTransactionFee_Call
- type MockLightningNode_CheckInvoicePaid_Call
- func (_c *MockLightningNode_CheckInvoicePaid_Call) Return(b bool, err error) *MockLightningNode_CheckInvoicePaid_Call
- func (_c *MockLightningNode_CheckInvoicePaid_Call) Run(run func(paymentHash []byte)) *MockLightningNode_CheckInvoicePaid_Call
- func (_c *MockLightningNode_CheckInvoicePaid_Call) RunAndReturn(run func(paymentHash []byte) (bool, error)) *MockLightningNode_CheckInvoicePaid_Call
- type MockLightningNode_Connect_Call
- type MockLightningNode_CreateInvoice_Call
- func (_c *MockLightningNode_CreateInvoice_Call) Return(addInvoiceResponse *lightning.AddInvoiceResponse, err error) *MockLightningNode_CreateInvoice_Call
- func (_c *MockLightningNode_CreateInvoice_Call) Run(run func(value uint64, preimage []byte, expiry int64, memo string)) *MockLightningNode_CreateInvoice_Call
- func (_c *MockLightningNode_CreateInvoice_Call) RunAndReturn(...) *MockLightningNode_CreateInvoice_Call
- type MockLightningNode_Disconnect_Call
- func (_c *MockLightningNode_Disconnect_Call) Return(err error) *MockLightningNode_Disconnect_Call
- func (_c *MockLightningNode_Disconnect_Call) Run(run func()) *MockLightningNode_Disconnect_Call
- func (_c *MockLightningNode_Disconnect_Call) RunAndReturn(run func() error) *MockLightningNode_Disconnect_Call
- type MockLightningNode_Expecter
- func (_e *MockLightningNode_Expecter) ApplyTransaction(txHex interface{}) *MockLightningNode_ApplyTransaction_Call
- func (_e *MockLightningNode_Expecter) BumpTransactionFee(txId interface{}, satPerVbyte interface{}) *MockLightningNode_BumpTransactionFee_Call
- func (_e *MockLightningNode_Expecter) CheckInvoicePaid(paymentHash interface{}) *MockLightningNode_CheckInvoicePaid_Call
- func (_e *MockLightningNode_Expecter) Connect() *MockLightningNode_Connect_Call
- func (_e *MockLightningNode_Expecter) CreateInvoice(value interface{}, preimage interface{}, expiry interface{}, memo interface{}) *MockLightningNode_CreateInvoice_Call
- func (_e *MockLightningNode_Expecter) Disconnect() *MockLightningNode_Disconnect_Call
- func (_e *MockLightningNode_Expecter) FullScan() *MockLightningNode_FullScan_Call
- func (_e *MockLightningNode_Expecter) GetBalance() *MockLightningNode_GetBalance_Call
- func (_e *MockLightningNode_Expecter) GetInfo() *MockLightningNode_GetInfo_Call
- func (_e *MockLightningNode_Expecter) GetOutputs(address interface{}) *MockLightningNode_GetOutputs_Call
- func (_e *MockLightningNode_Expecter) GetSendFee(args interface{}) *MockLightningNode_GetSendFee_Call
- func (_e *MockLightningNode_Expecter) GetTransactions(limit interface{}, offset interface{}) *MockLightningNode_GetTransactions_Call
- func (_e *MockLightningNode_Expecter) GetWalletInfo() *MockLightningNode_GetWalletInfo_Call
- func (_e *MockLightningNode_Expecter) ListChannels() *MockLightningNode_ListChannels_Call
- func (_e *MockLightningNode_Expecter) Name() *MockLightningNode_Name_Call
- func (_e *MockLightningNode_Expecter) NewAddress() *MockLightningNode_NewAddress_Call
- func (_e *MockLightningNode_Expecter) PayInvoice(ctx interface{}, invoice interface{}, feeLimit interface{}, ...) *MockLightningNode_PayInvoice_Call
- func (_e *MockLightningNode_Expecter) PaymentStatus(paymentHash interface{}) *MockLightningNode_PaymentStatus_Call
- func (_e *MockLightningNode_Expecter) Ready() *MockLightningNode_Ready_Call
- func (_e *MockLightningNode_Expecter) SendToAddress(args interface{}) *MockLightningNode_SendToAddress_Call
- func (_e *MockLightningNode_Expecter) SetupWallet(info interface{}) *MockLightningNode_SetupWallet_Call
- func (_e *MockLightningNode_Expecter) Sync() *MockLightningNode_Sync_Call
- type MockLightningNode_FullScan_Call
- type MockLightningNode_GetBalance_Call
- func (_c *MockLightningNode_GetBalance_Call) Return(balance *onchain.Balance, err error) *MockLightningNode_GetBalance_Call
- func (_c *MockLightningNode_GetBalance_Call) Run(run func()) *MockLightningNode_GetBalance_Call
- func (_c *MockLightningNode_GetBalance_Call) RunAndReturn(run func() (*onchain.Balance, error)) *MockLightningNode_GetBalance_Call
- type MockLightningNode_GetInfo_Call
- func (_c *MockLightningNode_GetInfo_Call) Return(lightningInfo *lightning.LightningInfo, err error) *MockLightningNode_GetInfo_Call
- func (_c *MockLightningNode_GetInfo_Call) Run(run func()) *MockLightningNode_GetInfo_Call
- func (_c *MockLightningNode_GetInfo_Call) RunAndReturn(run func() (*lightning.LightningInfo, error)) *MockLightningNode_GetInfo_Call
- type MockLightningNode_GetOutputs_Call
- func (_c *MockLightningNode_GetOutputs_Call) Return(outputs []*onchain.Output, err error) *MockLightningNode_GetOutputs_Call
- func (_c *MockLightningNode_GetOutputs_Call) Run(run func(address string)) *MockLightningNode_GetOutputs_Call
- func (_c *MockLightningNode_GetOutputs_Call) RunAndReturn(run func(address string) ([]*onchain.Output, error)) *MockLightningNode_GetOutputs_Call
- type MockLightningNode_GetSendFee_Call
- func (_c *MockLightningNode_GetSendFee_Call) Return(send uint64, fee uint64, err error) *MockLightningNode_GetSendFee_Call
- func (_c *MockLightningNode_GetSendFee_Call) Run(run func(args onchain.WalletSendArgs)) *MockLightningNode_GetSendFee_Call
- func (_c *MockLightningNode_GetSendFee_Call) RunAndReturn(run func(args onchain.WalletSendArgs) (uint64, uint64, error)) *MockLightningNode_GetSendFee_Call
- type MockLightningNode_GetTransactions_Call
- func (_c *MockLightningNode_GetTransactions_Call) Return(walletTransactions []*onchain.WalletTransaction, err error) *MockLightningNode_GetTransactions_Call
- func (_c *MockLightningNode_GetTransactions_Call) Run(run func(limit uint64, offset uint64)) *MockLightningNode_GetTransactions_Call
- func (_c *MockLightningNode_GetTransactions_Call) RunAndReturn(run func(limit uint64, offset uint64) ([]*onchain.WalletTransaction, error)) *MockLightningNode_GetTransactions_Call
- type MockLightningNode_GetWalletInfo_Call
- func (_c *MockLightningNode_GetWalletInfo_Call) Return(walletInfo onchain.WalletInfo) *MockLightningNode_GetWalletInfo_Call
- func (_c *MockLightningNode_GetWalletInfo_Call) Run(run func()) *MockLightningNode_GetWalletInfo_Call
- func (_c *MockLightningNode_GetWalletInfo_Call) RunAndReturn(run func() onchain.WalletInfo) *MockLightningNode_GetWalletInfo_Call
- type MockLightningNode_ListChannels_Call
- func (_c *MockLightningNode_ListChannels_Call) Return(lightningChannels []*lightning.LightningChannel, err error) *MockLightningNode_ListChannels_Call
- func (_c *MockLightningNode_ListChannels_Call) Run(run func()) *MockLightningNode_ListChannels_Call
- func (_c *MockLightningNode_ListChannels_Call) RunAndReturn(run func() ([]*lightning.LightningChannel, error)) *MockLightningNode_ListChannels_Call
- type MockLightningNode_Name_Call
- type MockLightningNode_NewAddress_Call
- func (_c *MockLightningNode_NewAddress_Call) Return(s string, err error) *MockLightningNode_NewAddress_Call
- func (_c *MockLightningNode_NewAddress_Call) Run(run func()) *MockLightningNode_NewAddress_Call
- func (_c *MockLightningNode_NewAddress_Call) RunAndReturn(run func() (string, error)) *MockLightningNode_NewAddress_Call
- type MockLightningNode_PayInvoice_Call
- func (_c *MockLightningNode_PayInvoice_Call) Return(payInvoiceResponse *lightning.PayInvoiceResponse, err error) *MockLightningNode_PayInvoice_Call
- func (_c *MockLightningNode_PayInvoice_Call) Run(...) *MockLightningNode_PayInvoice_Call
- func (_c *MockLightningNode_PayInvoice_Call) RunAndReturn(...) *MockLightningNode_PayInvoice_Call
- type MockLightningNode_PaymentStatus_Call
- func (_c *MockLightningNode_PaymentStatus_Call) Return(paymentStatus *lightning.PaymentStatus, err error) *MockLightningNode_PaymentStatus_Call
- func (_c *MockLightningNode_PaymentStatus_Call) Run(run func(paymentHash []byte)) *MockLightningNode_PaymentStatus_Call
- func (_c *MockLightningNode_PaymentStatus_Call) RunAndReturn(run func(paymentHash []byte) (*lightning.PaymentStatus, error)) *MockLightningNode_PaymentStatus_Call
- type MockLightningNode_Ready_Call
- type MockLightningNode_SendToAddress_Call
- func (_c *MockLightningNode_SendToAddress_Call) Return(s string, err error) *MockLightningNode_SendToAddress_Call
- func (_c *MockLightningNode_SendToAddress_Call) Run(run func(args onchain.WalletSendArgs)) *MockLightningNode_SendToAddress_Call
- func (_c *MockLightningNode_SendToAddress_Call) RunAndReturn(run func(args onchain.WalletSendArgs) (string, error)) *MockLightningNode_SendToAddress_Call
- type MockLightningNode_SetupWallet_Call
- func (_c *MockLightningNode_SetupWallet_Call) Return() *MockLightningNode_SetupWallet_Call
- func (_c *MockLightningNode_SetupWallet_Call) Run(run func(info onchain.WalletInfo)) *MockLightningNode_SetupWallet_Call
- func (_c *MockLightningNode_SetupWallet_Call) RunAndReturn(run func(info onchain.WalletInfo)) *MockLightningNode_SetupWallet_Call
- type MockLightningNode_Sync_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockLightningNode ¶
MockLightningNode is an autogenerated mock type for the LightningNode type
func NewMockLightningNode ¶
func NewMockLightningNode(t interface {
mock.TestingT
Cleanup(func())
}) *MockLightningNode
NewMockLightningNode creates a new instance of MockLightningNode. 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 (*MockLightningNode) ApplyTransaction ¶
func (_mock *MockLightningNode) ApplyTransaction(txHex string) error
ApplyTransaction provides a mock function for the type MockLightningNode
func (*MockLightningNode) BumpTransactionFee ¶
func (_mock *MockLightningNode) BumpTransactionFee(txId string, satPerVbyte float64) (string, error)
BumpTransactionFee provides a mock function for the type MockLightningNode
func (*MockLightningNode) CheckInvoicePaid ¶
func (_mock *MockLightningNode) CheckInvoicePaid(paymentHash []byte) (bool, error)
CheckInvoicePaid provides a mock function for the type MockLightningNode
func (*MockLightningNode) Connect ¶
func (_mock *MockLightningNode) Connect() error
Connect provides a mock function for the type MockLightningNode
func (*MockLightningNode) CreateInvoice ¶
func (_mock *MockLightningNode) CreateInvoice(value uint64, preimage []byte, expiry int64, memo string) (*lightning.AddInvoiceResponse, error)
CreateInvoice provides a mock function for the type MockLightningNode
func (*MockLightningNode) Disconnect ¶
func (_mock *MockLightningNode) Disconnect() error
Disconnect provides a mock function for the type MockLightningNode
func (*MockLightningNode) EXPECT ¶
func (_m *MockLightningNode) EXPECT() *MockLightningNode_Expecter
func (*MockLightningNode) FullScan ¶
func (_mock *MockLightningNode) FullScan() error
FullScan provides a mock function for the type MockLightningNode
func (*MockLightningNode) GetBalance ¶
func (_mock *MockLightningNode) GetBalance() (*onchain.Balance, error)
GetBalance provides a mock function for the type MockLightningNode
func (*MockLightningNode) GetInfo ¶
func (_mock *MockLightningNode) GetInfo() (*lightning.LightningInfo, error)
GetInfo provides a mock function for the type MockLightningNode
func (*MockLightningNode) GetOutputs ¶
func (_mock *MockLightningNode) GetOutputs(address string) ([]*onchain.Output, error)
GetOutputs provides a mock function for the type MockLightningNode
func (*MockLightningNode) GetSendFee ¶
func (_mock *MockLightningNode) GetSendFee(args onchain.WalletSendArgs) (uint64, uint64, error)
GetSendFee provides a mock function for the type MockLightningNode
func (*MockLightningNode) GetTransactions ¶
func (_mock *MockLightningNode) GetTransactions(limit uint64, offset uint64) ([]*onchain.WalletTransaction, error)
GetTransactions provides a mock function for the type MockLightningNode
func (*MockLightningNode) GetWalletInfo ¶
func (_mock *MockLightningNode) GetWalletInfo() onchain.WalletInfo
GetWalletInfo provides a mock function for the type MockLightningNode
func (*MockLightningNode) ListChannels ¶
func (_mock *MockLightningNode) ListChannels() ([]*lightning.LightningChannel, error)
ListChannels provides a mock function for the type MockLightningNode
func (*MockLightningNode) Name ¶
func (_mock *MockLightningNode) Name() string
Name provides a mock function for the type MockLightningNode
func (*MockLightningNode) NewAddress ¶
func (_mock *MockLightningNode) NewAddress() (string, error)
NewAddress provides a mock function for the type MockLightningNode
func (*MockLightningNode) PayInvoice ¶
func (_mock *MockLightningNode) PayInvoice(ctx context.Context, invoice string, feeLimit uint, timeoutSeconds uint, channelIds []lightning.ChanId) (*lightning.PayInvoiceResponse, error)
PayInvoice provides a mock function for the type MockLightningNode
func (*MockLightningNode) PaymentStatus ¶
func (_mock *MockLightningNode) PaymentStatus(paymentHash []byte) (*lightning.PaymentStatus, error)
PaymentStatus provides a mock function for the type MockLightningNode
func (*MockLightningNode) Ready ¶
func (_mock *MockLightningNode) Ready() bool
Ready provides a mock function for the type MockLightningNode
func (*MockLightningNode) SendToAddress ¶
func (_mock *MockLightningNode) SendToAddress(args onchain.WalletSendArgs) (string, error)
SendToAddress provides a mock function for the type MockLightningNode
func (*MockLightningNode) SetupWallet ¶
func (_mock *MockLightningNode) SetupWallet(info onchain.WalletInfo)
SetupWallet provides a mock function for the type MockLightningNode
func (*MockLightningNode) Sync ¶
func (_mock *MockLightningNode) Sync() error
Sync provides a mock function for the type MockLightningNode
type MockLightningNode_ApplyTransaction_Call ¶
MockLightningNode_ApplyTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ApplyTransaction'
func (*MockLightningNode_ApplyTransaction_Call) Return ¶
func (_c *MockLightningNode_ApplyTransaction_Call) Return(err error) *MockLightningNode_ApplyTransaction_Call
func (*MockLightningNode_ApplyTransaction_Call) Run ¶
func (_c *MockLightningNode_ApplyTransaction_Call) Run(run func(txHex string)) *MockLightningNode_ApplyTransaction_Call
func (*MockLightningNode_ApplyTransaction_Call) RunAndReturn ¶
func (_c *MockLightningNode_ApplyTransaction_Call) RunAndReturn(run func(txHex string) error) *MockLightningNode_ApplyTransaction_Call
type MockLightningNode_BumpTransactionFee_Call ¶
MockLightningNode_BumpTransactionFee_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BumpTransactionFee'
func (*MockLightningNode_BumpTransactionFee_Call) Return ¶
func (_c *MockLightningNode_BumpTransactionFee_Call) Return(s string, err error) *MockLightningNode_BumpTransactionFee_Call
func (*MockLightningNode_BumpTransactionFee_Call) Run ¶
func (_c *MockLightningNode_BumpTransactionFee_Call) Run(run func(txId string, satPerVbyte float64)) *MockLightningNode_BumpTransactionFee_Call
func (*MockLightningNode_BumpTransactionFee_Call) RunAndReturn ¶
func (_c *MockLightningNode_BumpTransactionFee_Call) RunAndReturn(run func(txId string, satPerVbyte float64) (string, error)) *MockLightningNode_BumpTransactionFee_Call
type MockLightningNode_CheckInvoicePaid_Call ¶
MockLightningNode_CheckInvoicePaid_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckInvoicePaid'
func (*MockLightningNode_CheckInvoicePaid_Call) Return ¶
func (_c *MockLightningNode_CheckInvoicePaid_Call) Return(b bool, err error) *MockLightningNode_CheckInvoicePaid_Call
func (*MockLightningNode_CheckInvoicePaid_Call) Run ¶
func (_c *MockLightningNode_CheckInvoicePaid_Call) Run(run func(paymentHash []byte)) *MockLightningNode_CheckInvoicePaid_Call
func (*MockLightningNode_CheckInvoicePaid_Call) RunAndReturn ¶
func (_c *MockLightningNode_CheckInvoicePaid_Call) RunAndReturn(run func(paymentHash []byte) (bool, error)) *MockLightningNode_CheckInvoicePaid_Call
type MockLightningNode_Connect_Call ¶
MockLightningNode_Connect_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Connect'
func (*MockLightningNode_Connect_Call) Return ¶
func (_c *MockLightningNode_Connect_Call) Return(err error) *MockLightningNode_Connect_Call
func (*MockLightningNode_Connect_Call) Run ¶
func (_c *MockLightningNode_Connect_Call) Run(run func()) *MockLightningNode_Connect_Call
func (*MockLightningNode_Connect_Call) RunAndReturn ¶
func (_c *MockLightningNode_Connect_Call) RunAndReturn(run func() error) *MockLightningNode_Connect_Call
type MockLightningNode_CreateInvoice_Call ¶
MockLightningNode_CreateInvoice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateInvoice'
func (*MockLightningNode_CreateInvoice_Call) Return ¶
func (_c *MockLightningNode_CreateInvoice_Call) Return(addInvoiceResponse *lightning.AddInvoiceResponse, err error) *MockLightningNode_CreateInvoice_Call
func (*MockLightningNode_CreateInvoice_Call) Run ¶
func (_c *MockLightningNode_CreateInvoice_Call) Run(run func(value uint64, preimage []byte, expiry int64, memo string)) *MockLightningNode_CreateInvoice_Call
func (*MockLightningNode_CreateInvoice_Call) RunAndReturn ¶
func (_c *MockLightningNode_CreateInvoice_Call) RunAndReturn(run func(value uint64, preimage []byte, expiry int64, memo string) (*lightning.AddInvoiceResponse, error)) *MockLightningNode_CreateInvoice_Call
type MockLightningNode_Disconnect_Call ¶
MockLightningNode_Disconnect_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Disconnect'
func (*MockLightningNode_Disconnect_Call) Return ¶
func (_c *MockLightningNode_Disconnect_Call) Return(err error) *MockLightningNode_Disconnect_Call
func (*MockLightningNode_Disconnect_Call) Run ¶
func (_c *MockLightningNode_Disconnect_Call) Run(run func()) *MockLightningNode_Disconnect_Call
func (*MockLightningNode_Disconnect_Call) RunAndReturn ¶
func (_c *MockLightningNode_Disconnect_Call) RunAndReturn(run func() error) *MockLightningNode_Disconnect_Call
type MockLightningNode_Expecter ¶
type MockLightningNode_Expecter struct {
// contains filtered or unexported fields
}
func (*MockLightningNode_Expecter) ApplyTransaction ¶
func (_e *MockLightningNode_Expecter) ApplyTransaction(txHex interface{}) *MockLightningNode_ApplyTransaction_Call
ApplyTransaction is a helper method to define mock.On call
- txHex string
func (*MockLightningNode_Expecter) BumpTransactionFee ¶
func (_e *MockLightningNode_Expecter) BumpTransactionFee(txId interface{}, satPerVbyte interface{}) *MockLightningNode_BumpTransactionFee_Call
BumpTransactionFee is a helper method to define mock.On call
- txId string
- satPerVbyte float64
func (*MockLightningNode_Expecter) CheckInvoicePaid ¶
func (_e *MockLightningNode_Expecter) CheckInvoicePaid(paymentHash interface{}) *MockLightningNode_CheckInvoicePaid_Call
CheckInvoicePaid is a helper method to define mock.On call
- paymentHash []byte
func (*MockLightningNode_Expecter) Connect ¶
func (_e *MockLightningNode_Expecter) Connect() *MockLightningNode_Connect_Call
Connect is a helper method to define mock.On call
func (*MockLightningNode_Expecter) CreateInvoice ¶
func (_e *MockLightningNode_Expecter) CreateInvoice(value interface{}, preimage interface{}, expiry interface{}, memo interface{}) *MockLightningNode_CreateInvoice_Call
CreateInvoice is a helper method to define mock.On call
- value uint64
- preimage []byte
- expiry int64
- memo string
func (*MockLightningNode_Expecter) Disconnect ¶
func (_e *MockLightningNode_Expecter) Disconnect() *MockLightningNode_Disconnect_Call
Disconnect is a helper method to define mock.On call
func (*MockLightningNode_Expecter) FullScan ¶
func (_e *MockLightningNode_Expecter) FullScan() *MockLightningNode_FullScan_Call
FullScan is a helper method to define mock.On call
func (*MockLightningNode_Expecter) GetBalance ¶
func (_e *MockLightningNode_Expecter) GetBalance() *MockLightningNode_GetBalance_Call
GetBalance is a helper method to define mock.On call
func (*MockLightningNode_Expecter) GetInfo ¶
func (_e *MockLightningNode_Expecter) GetInfo() *MockLightningNode_GetInfo_Call
GetInfo is a helper method to define mock.On call
func (*MockLightningNode_Expecter) GetOutputs ¶
func (_e *MockLightningNode_Expecter) GetOutputs(address interface{}) *MockLightningNode_GetOutputs_Call
GetOutputs is a helper method to define mock.On call
- address string
func (*MockLightningNode_Expecter) GetSendFee ¶
func (_e *MockLightningNode_Expecter) GetSendFee(args interface{}) *MockLightningNode_GetSendFee_Call
GetSendFee is a helper method to define mock.On call
- args onchain.WalletSendArgs
func (*MockLightningNode_Expecter) GetTransactions ¶
func (_e *MockLightningNode_Expecter) GetTransactions(limit interface{}, offset interface{}) *MockLightningNode_GetTransactions_Call
GetTransactions is a helper method to define mock.On call
- limit uint64
- offset uint64
func (*MockLightningNode_Expecter) GetWalletInfo ¶
func (_e *MockLightningNode_Expecter) GetWalletInfo() *MockLightningNode_GetWalletInfo_Call
GetWalletInfo is a helper method to define mock.On call
func (*MockLightningNode_Expecter) ListChannels ¶
func (_e *MockLightningNode_Expecter) ListChannels() *MockLightningNode_ListChannels_Call
ListChannels is a helper method to define mock.On call
func (*MockLightningNode_Expecter) Name ¶
func (_e *MockLightningNode_Expecter) Name() *MockLightningNode_Name_Call
Name is a helper method to define mock.On call
func (*MockLightningNode_Expecter) NewAddress ¶
func (_e *MockLightningNode_Expecter) NewAddress() *MockLightningNode_NewAddress_Call
NewAddress is a helper method to define mock.On call
func (*MockLightningNode_Expecter) PayInvoice ¶
func (_e *MockLightningNode_Expecter) PayInvoice(ctx interface{}, invoice interface{}, feeLimit interface{}, timeoutSeconds interface{}, channelIds interface{}) *MockLightningNode_PayInvoice_Call
PayInvoice is a helper method to define mock.On call
- ctx context.Context
- invoice string
- feeLimit uint
- timeoutSeconds uint
- channelIds []lightning.ChanId
func (*MockLightningNode_Expecter) PaymentStatus ¶
func (_e *MockLightningNode_Expecter) PaymentStatus(paymentHash interface{}) *MockLightningNode_PaymentStatus_Call
PaymentStatus is a helper method to define mock.On call
- paymentHash []byte
func (*MockLightningNode_Expecter) Ready ¶
func (_e *MockLightningNode_Expecter) Ready() *MockLightningNode_Ready_Call
Ready is a helper method to define mock.On call
func (*MockLightningNode_Expecter) SendToAddress ¶
func (_e *MockLightningNode_Expecter) SendToAddress(args interface{}) *MockLightningNode_SendToAddress_Call
SendToAddress is a helper method to define mock.On call
- args onchain.WalletSendArgs
func (*MockLightningNode_Expecter) SetupWallet ¶
func (_e *MockLightningNode_Expecter) SetupWallet(info interface{}) *MockLightningNode_SetupWallet_Call
SetupWallet is a helper method to define mock.On call
- info onchain.WalletInfo
func (*MockLightningNode_Expecter) Sync ¶
func (_e *MockLightningNode_Expecter) Sync() *MockLightningNode_Sync_Call
Sync is a helper method to define mock.On call
type MockLightningNode_FullScan_Call ¶
MockLightningNode_FullScan_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FullScan'
func (*MockLightningNode_FullScan_Call) Return ¶
func (_c *MockLightningNode_FullScan_Call) Return(err error) *MockLightningNode_FullScan_Call
func (*MockLightningNode_FullScan_Call) Run ¶
func (_c *MockLightningNode_FullScan_Call) Run(run func()) *MockLightningNode_FullScan_Call
func (*MockLightningNode_FullScan_Call) RunAndReturn ¶
func (_c *MockLightningNode_FullScan_Call) RunAndReturn(run func() error) *MockLightningNode_FullScan_Call
type MockLightningNode_GetBalance_Call ¶
MockLightningNode_GetBalance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBalance'
func (*MockLightningNode_GetBalance_Call) Return ¶
func (_c *MockLightningNode_GetBalance_Call) Return(balance *onchain.Balance, err error) *MockLightningNode_GetBalance_Call
func (*MockLightningNode_GetBalance_Call) Run ¶
func (_c *MockLightningNode_GetBalance_Call) Run(run func()) *MockLightningNode_GetBalance_Call
func (*MockLightningNode_GetBalance_Call) RunAndReturn ¶
func (_c *MockLightningNode_GetBalance_Call) RunAndReturn(run func() (*onchain.Balance, error)) *MockLightningNode_GetBalance_Call
type MockLightningNode_GetInfo_Call ¶
MockLightningNode_GetInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetInfo'
func (*MockLightningNode_GetInfo_Call) Return ¶
func (_c *MockLightningNode_GetInfo_Call) Return(lightningInfo *lightning.LightningInfo, err error) *MockLightningNode_GetInfo_Call
func (*MockLightningNode_GetInfo_Call) Run ¶
func (_c *MockLightningNode_GetInfo_Call) Run(run func()) *MockLightningNode_GetInfo_Call
func (*MockLightningNode_GetInfo_Call) RunAndReturn ¶
func (_c *MockLightningNode_GetInfo_Call) RunAndReturn(run func() (*lightning.LightningInfo, error)) *MockLightningNode_GetInfo_Call
type MockLightningNode_GetOutputs_Call ¶
MockLightningNode_GetOutputs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOutputs'
func (*MockLightningNode_GetOutputs_Call) Return ¶
func (_c *MockLightningNode_GetOutputs_Call) Return(outputs []*onchain.Output, err error) *MockLightningNode_GetOutputs_Call
func (*MockLightningNode_GetOutputs_Call) Run ¶
func (_c *MockLightningNode_GetOutputs_Call) Run(run func(address string)) *MockLightningNode_GetOutputs_Call
func (*MockLightningNode_GetOutputs_Call) RunAndReturn ¶
func (_c *MockLightningNode_GetOutputs_Call) RunAndReturn(run func(address string) ([]*onchain.Output, error)) *MockLightningNode_GetOutputs_Call
type MockLightningNode_GetSendFee_Call ¶
MockLightningNode_GetSendFee_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSendFee'
func (*MockLightningNode_GetSendFee_Call) Return ¶
func (_c *MockLightningNode_GetSendFee_Call) Return(send uint64, fee uint64, err error) *MockLightningNode_GetSendFee_Call
func (*MockLightningNode_GetSendFee_Call) Run ¶
func (_c *MockLightningNode_GetSendFee_Call) Run(run func(args onchain.WalletSendArgs)) *MockLightningNode_GetSendFee_Call
func (*MockLightningNode_GetSendFee_Call) RunAndReturn ¶
func (_c *MockLightningNode_GetSendFee_Call) RunAndReturn(run func(args onchain.WalletSendArgs) (uint64, uint64, error)) *MockLightningNode_GetSendFee_Call
type MockLightningNode_GetTransactions_Call ¶
MockLightningNode_GetTransactions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTransactions'
func (*MockLightningNode_GetTransactions_Call) Return ¶
func (_c *MockLightningNode_GetTransactions_Call) Return(walletTransactions []*onchain.WalletTransaction, err error) *MockLightningNode_GetTransactions_Call
func (*MockLightningNode_GetTransactions_Call) Run ¶
func (_c *MockLightningNode_GetTransactions_Call) Run(run func(limit uint64, offset uint64)) *MockLightningNode_GetTransactions_Call
func (*MockLightningNode_GetTransactions_Call) RunAndReturn ¶
func (_c *MockLightningNode_GetTransactions_Call) RunAndReturn(run func(limit uint64, offset uint64) ([]*onchain.WalletTransaction, error)) *MockLightningNode_GetTransactions_Call
type MockLightningNode_GetWalletInfo_Call ¶
MockLightningNode_GetWalletInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetWalletInfo'
func (*MockLightningNode_GetWalletInfo_Call) Return ¶
func (_c *MockLightningNode_GetWalletInfo_Call) Return(walletInfo onchain.WalletInfo) *MockLightningNode_GetWalletInfo_Call
func (*MockLightningNode_GetWalletInfo_Call) Run ¶
func (_c *MockLightningNode_GetWalletInfo_Call) Run(run func()) *MockLightningNode_GetWalletInfo_Call
func (*MockLightningNode_GetWalletInfo_Call) RunAndReturn ¶
func (_c *MockLightningNode_GetWalletInfo_Call) RunAndReturn(run func() onchain.WalletInfo) *MockLightningNode_GetWalletInfo_Call
type MockLightningNode_ListChannels_Call ¶
MockLightningNode_ListChannels_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListChannels'
func (*MockLightningNode_ListChannels_Call) Return ¶
func (_c *MockLightningNode_ListChannels_Call) Return(lightningChannels []*lightning.LightningChannel, err error) *MockLightningNode_ListChannels_Call
func (*MockLightningNode_ListChannels_Call) Run ¶
func (_c *MockLightningNode_ListChannels_Call) Run(run func()) *MockLightningNode_ListChannels_Call
func (*MockLightningNode_ListChannels_Call) RunAndReturn ¶
func (_c *MockLightningNode_ListChannels_Call) RunAndReturn(run func() ([]*lightning.LightningChannel, error)) *MockLightningNode_ListChannels_Call
type MockLightningNode_Name_Call ¶
MockLightningNode_Name_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Name'
func (*MockLightningNode_Name_Call) Return ¶
func (_c *MockLightningNode_Name_Call) Return(s string) *MockLightningNode_Name_Call
func (*MockLightningNode_Name_Call) Run ¶
func (_c *MockLightningNode_Name_Call) Run(run func()) *MockLightningNode_Name_Call
func (*MockLightningNode_Name_Call) RunAndReturn ¶
func (_c *MockLightningNode_Name_Call) RunAndReturn(run func() string) *MockLightningNode_Name_Call
type MockLightningNode_NewAddress_Call ¶
MockLightningNode_NewAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewAddress'
func (*MockLightningNode_NewAddress_Call) Return ¶
func (_c *MockLightningNode_NewAddress_Call) Return(s string, err error) *MockLightningNode_NewAddress_Call
func (*MockLightningNode_NewAddress_Call) Run ¶
func (_c *MockLightningNode_NewAddress_Call) Run(run func()) *MockLightningNode_NewAddress_Call
func (*MockLightningNode_NewAddress_Call) RunAndReturn ¶
func (_c *MockLightningNode_NewAddress_Call) RunAndReturn(run func() (string, error)) *MockLightningNode_NewAddress_Call
type MockLightningNode_PayInvoice_Call ¶
MockLightningNode_PayInvoice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PayInvoice'
func (*MockLightningNode_PayInvoice_Call) Return ¶
func (_c *MockLightningNode_PayInvoice_Call) Return(payInvoiceResponse *lightning.PayInvoiceResponse, err error) *MockLightningNode_PayInvoice_Call
func (*MockLightningNode_PayInvoice_Call) Run ¶
func (_c *MockLightningNode_PayInvoice_Call) Run(run func(ctx context.Context, invoice string, feeLimit uint, timeoutSeconds uint, channelIds []lightning.ChanId)) *MockLightningNode_PayInvoice_Call
func (*MockLightningNode_PayInvoice_Call) RunAndReturn ¶
func (_c *MockLightningNode_PayInvoice_Call) RunAndReturn(run func(ctx context.Context, invoice string, feeLimit uint, timeoutSeconds uint, channelIds []lightning.ChanId) (*lightning.PayInvoiceResponse, error)) *MockLightningNode_PayInvoice_Call
type MockLightningNode_PaymentStatus_Call ¶
MockLightningNode_PaymentStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PaymentStatus'
func (*MockLightningNode_PaymentStatus_Call) Return ¶
func (_c *MockLightningNode_PaymentStatus_Call) Return(paymentStatus *lightning.PaymentStatus, err error) *MockLightningNode_PaymentStatus_Call
func (*MockLightningNode_PaymentStatus_Call) Run ¶
func (_c *MockLightningNode_PaymentStatus_Call) Run(run func(paymentHash []byte)) *MockLightningNode_PaymentStatus_Call
func (*MockLightningNode_PaymentStatus_Call) RunAndReturn ¶
func (_c *MockLightningNode_PaymentStatus_Call) RunAndReturn(run func(paymentHash []byte) (*lightning.PaymentStatus, error)) *MockLightningNode_PaymentStatus_Call
type MockLightningNode_Ready_Call ¶
MockLightningNode_Ready_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Ready'
func (*MockLightningNode_Ready_Call) Return ¶
func (_c *MockLightningNode_Ready_Call) Return(b bool) *MockLightningNode_Ready_Call
func (*MockLightningNode_Ready_Call) Run ¶
func (_c *MockLightningNode_Ready_Call) Run(run func()) *MockLightningNode_Ready_Call
func (*MockLightningNode_Ready_Call) RunAndReturn ¶
func (_c *MockLightningNode_Ready_Call) RunAndReturn(run func() bool) *MockLightningNode_Ready_Call
type MockLightningNode_SendToAddress_Call ¶
MockLightningNode_SendToAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendToAddress'
func (*MockLightningNode_SendToAddress_Call) Return ¶
func (_c *MockLightningNode_SendToAddress_Call) Return(s string, err error) *MockLightningNode_SendToAddress_Call
func (*MockLightningNode_SendToAddress_Call) Run ¶
func (_c *MockLightningNode_SendToAddress_Call) Run(run func(args onchain.WalletSendArgs)) *MockLightningNode_SendToAddress_Call
func (*MockLightningNode_SendToAddress_Call) RunAndReturn ¶
func (_c *MockLightningNode_SendToAddress_Call) RunAndReturn(run func(args onchain.WalletSendArgs) (string, error)) *MockLightningNode_SendToAddress_Call
type MockLightningNode_SetupWallet_Call ¶
MockLightningNode_SetupWallet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetupWallet'
func (*MockLightningNode_SetupWallet_Call) Return ¶
func (_c *MockLightningNode_SetupWallet_Call) Return() *MockLightningNode_SetupWallet_Call
func (*MockLightningNode_SetupWallet_Call) Run ¶
func (_c *MockLightningNode_SetupWallet_Call) Run(run func(info onchain.WalletInfo)) *MockLightningNode_SetupWallet_Call
func (*MockLightningNode_SetupWallet_Call) RunAndReturn ¶
func (_c *MockLightningNode_SetupWallet_Call) RunAndReturn(run func(info onchain.WalletInfo)) *MockLightningNode_SetupWallet_Call
type MockLightningNode_Sync_Call ¶
MockLightningNode_Sync_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Sync'
func (*MockLightningNode_Sync_Call) Return ¶
func (_c *MockLightningNode_Sync_Call) Return(err error) *MockLightningNode_Sync_Call
func (*MockLightningNode_Sync_Call) Run ¶
func (_c *MockLightningNode_Sync_Call) Run(run func()) *MockLightningNode_Sync_Call
func (*MockLightningNode_Sync_Call) RunAndReturn ¶
func (_c *MockLightningNode_Sync_Call) RunAndReturn(run func() error) *MockLightningNode_Sync_Call