lightning

package
v1.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockLightningNode

type MockLightningNode struct {
	mock.Mock
}

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 (*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

type MockLightningNode_ApplyTransaction_Call struct {
	*mock.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 (*MockLightningNode_ApplyTransaction_Call) Run

func (*MockLightningNode_ApplyTransaction_Call) RunAndReturn

type MockLightningNode_BumpTransactionFee_Call

type MockLightningNode_BumpTransactionFee_Call struct {
	*mock.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 (*MockLightningNode_BumpTransactionFee_Call) Run

func (*MockLightningNode_BumpTransactionFee_Call) RunAndReturn

type MockLightningNode_CheckInvoicePaid_Call

type MockLightningNode_CheckInvoicePaid_Call struct {
	*mock.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 (*MockLightningNode_CheckInvoicePaid_Call) Run

func (*MockLightningNode_CheckInvoicePaid_Call) RunAndReturn

type MockLightningNode_Connect_Call

type MockLightningNode_Connect_Call struct {
	*mock.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 (*MockLightningNode_Connect_Call) Run

func (*MockLightningNode_Connect_Call) RunAndReturn

type MockLightningNode_CreateInvoice_Call

type MockLightningNode_CreateInvoice_Call struct {
	*mock.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 (*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

type MockLightningNode_Disconnect_Call

type MockLightningNode_Disconnect_Call struct {
	*mock.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 (*MockLightningNode_Disconnect_Call) Run

func (*MockLightningNode_Disconnect_Call) RunAndReturn

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

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

Disconnect is a helper method to define mock.On call

func (*MockLightningNode_Expecter) FullScan

FullScan is a helper method to define mock.On call

func (*MockLightningNode_Expecter) GetBalance

GetBalance is a helper method to define mock.On call

func (*MockLightningNode_Expecter) GetInfo

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

GetWalletInfo is a helper method to define mock.On call

func (*MockLightningNode_Expecter) ListChannels

ListChannels is a helper method to define mock.On call

func (*MockLightningNode_Expecter) Name

Name is a helper method to define mock.On call

func (*MockLightningNode_Expecter) NewAddress

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

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

Sync is a helper method to define mock.On call

type MockLightningNode_FullScan_Call

type MockLightningNode_FullScan_Call struct {
	*mock.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 (*MockLightningNode_FullScan_Call) Run

func (*MockLightningNode_FullScan_Call) RunAndReturn

type MockLightningNode_GetBalance_Call

type MockLightningNode_GetBalance_Call struct {
	*mock.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 (*MockLightningNode_GetBalance_Call) Run

func (*MockLightningNode_GetBalance_Call) RunAndReturn

type MockLightningNode_GetInfo_Call

type MockLightningNode_GetInfo_Call struct {
	*mock.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 (*MockLightningNode_GetInfo_Call) Run

func (*MockLightningNode_GetInfo_Call) RunAndReturn

type MockLightningNode_GetOutputs_Call

type MockLightningNode_GetOutputs_Call struct {
	*mock.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 (*MockLightningNode_GetOutputs_Call) Run

func (*MockLightningNode_GetOutputs_Call) RunAndReturn

type MockLightningNode_GetSendFee_Call

type MockLightningNode_GetSendFee_Call struct {
	*mock.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 (*MockLightningNode_GetSendFee_Call) Run

func (*MockLightningNode_GetSendFee_Call) RunAndReturn

type MockLightningNode_GetTransactions_Call

type MockLightningNode_GetTransactions_Call struct {
	*mock.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 (*MockLightningNode_GetTransactions_Call) Run

func (*MockLightningNode_GetTransactions_Call) RunAndReturn

type MockLightningNode_GetWalletInfo_Call

type MockLightningNode_GetWalletInfo_Call struct {
	*mock.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 (*MockLightningNode_GetWalletInfo_Call) Run

func (*MockLightningNode_GetWalletInfo_Call) RunAndReturn

type MockLightningNode_ListChannels_Call

type MockLightningNode_ListChannels_Call struct {
	*mock.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 (*MockLightningNode_ListChannels_Call) Run

func (*MockLightningNode_ListChannels_Call) RunAndReturn

type MockLightningNode_Name_Call

type MockLightningNode_Name_Call struct {
	*mock.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 (*MockLightningNode_Name_Call) Run

func (*MockLightningNode_Name_Call) RunAndReturn

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

type MockLightningNode_NewAddress_Call

type MockLightningNode_NewAddress_Call struct {
	*mock.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 (*MockLightningNode_NewAddress_Call) Run

func (*MockLightningNode_NewAddress_Call) RunAndReturn

type MockLightningNode_PayInvoice_Call

type MockLightningNode_PayInvoice_Call struct {
	*mock.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 (*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

type MockLightningNode_PaymentStatus_Call struct {
	*mock.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 (*MockLightningNode_PaymentStatus_Call) Run

func (*MockLightningNode_PaymentStatus_Call) RunAndReturn

type MockLightningNode_Ready_Call

type MockLightningNode_Ready_Call struct {
	*mock.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 (*MockLightningNode_Ready_Call) Run

func (*MockLightningNode_Ready_Call) RunAndReturn

func (_c *MockLightningNode_Ready_Call) RunAndReturn(run func() bool) *MockLightningNode_Ready_Call

type MockLightningNode_SendToAddress_Call

type MockLightningNode_SendToAddress_Call struct {
	*mock.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 (*MockLightningNode_SendToAddress_Call) Run

func (*MockLightningNode_SendToAddress_Call) RunAndReturn

type MockLightningNode_SetupWallet_Call

type MockLightningNode_SetupWallet_Call struct {
	*mock.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 (*MockLightningNode_SetupWallet_Call) Run

func (*MockLightningNode_SetupWallet_Call) RunAndReturn

type MockLightningNode_Sync_Call

type MockLightningNode_Sync_Call struct {
	*mock.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 (*MockLightningNode_Sync_Call) Run

func (*MockLightningNode_Sync_Call) RunAndReturn

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

Jump to

Keyboard shortcuts

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