Documentation ¶
Index ¶
- type LightManager
- func (_m *LightManager) Close() error
- func (_m *LightManager) ConnectNode(ctx context.Context, address string, hostport string) error
- func (_m *LightManager) CreateInvoice(ctx context.Context, memo string, amt lnchat.Amount, expiry int64, ...) (*lnchat.Invoice, error)
- func (_m *LightManager) DecodePayReq(ctx context.Context, payReq string) (*lnchat.PayReq, error)
- func (_m *LightManager) GetRoute(ctx context.Context, recipient string, amt lnchat.Amount, payReq string, ...) (*lnchat.Route, float64, error)
- func (_m *LightManager) GetSelfBalance(ctx context.Context) (*lnchat.SelfBalance, error)
- func (_m *LightManager) GetSelfInfo(ctx context.Context) (lnchat.SelfInfo, error)
- func (_m *LightManager) ListNodes(ctx context.Context) ([]lnchat.LightningNode, error)
- func (_m *LightManager) LookupInvoice(ctx context.Context, payHash string) (*lnchat.Invoice, error)
- func (_m *LightManager) OpenChannel(ctx context.Context, address string, private bool, amtMsat uint64, ...) (*lnchat.ChannelPoint, error)
- func (_m *LightManager) SendPayment(ctx context.Context, recipient string, amt lnchat.Amount, payReq string, ...) (<-chan lnchat.PaymentUpdate, error)
- func (_m *LightManager) SignMessage(ctx context.Context, message []byte) ([]byte, error)
- func (_m *LightManager) SubscribeInvoiceUpdates(ctx context.Context, startIdx uint64, filter func(*lnchat.Invoice) bool) (<-chan lnchat.InvoiceUpdate, error)
- func (_m *LightManager) SubscribePaymentUpdates(ctx context.Context, startIdx uint64, filter func(*lnchat.Payment) bool) (<-chan lnchat.PaymentUpdate, error)
- func (_m *LightManager) VerifySignatureExtractPubkey(ctx context.Context, message []byte, signature []byte) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LightManager ¶
LightManager is an autogenerated mock type for the LightManager type
func (*LightManager) Close ¶
func (_m *LightManager) Close() error
Close provides a mock function with given fields:
func (*LightManager) ConnectNode ¶
ConnectNode provides a mock function with given fields: ctx, address, hostport
func (*LightManager) CreateInvoice ¶
func (_m *LightManager) CreateInvoice(ctx context.Context, memo string, amt lnchat.Amount, expiry int64, privateHints bool) (*lnchat.Invoice, error)
CreateInvoice provides a mock function with given fields: ctx, memo, amt, expiry, privateHints
func (*LightManager) DecodePayReq ¶
DecodePayReq provides a mock function with given fields: ctx, payReq
func (*LightManager) GetRoute ¶
func (_m *LightManager) GetRoute(ctx context.Context, recipient string, amt lnchat.Amount, payReq string, payOpts lnchat.PaymentOptions, payload map[uint64][]byte) (*lnchat.Route, float64, error)
GetRoute provides a mock function with given fields: ctx, recipient, amt, payReq, payOpts, payload
func (*LightManager) GetSelfBalance ¶
func (_m *LightManager) GetSelfBalance(ctx context.Context) (*lnchat.SelfBalance, error)
GetSelfBalance provides a mock function with given fields: ctx
func (*LightManager) GetSelfInfo ¶
GetSelfInfo provides a mock function with given fields: ctx
func (*LightManager) ListNodes ¶
func (_m *LightManager) ListNodes(ctx context.Context) ([]lnchat.LightningNode, error)
ListNodes provides a mock function with given fields: ctx
func (*LightManager) LookupInvoice ¶
LookupInvoice provides a mock function with given fields: ctx, payHash
func (*LightManager) OpenChannel ¶
func (_m *LightManager) OpenChannel(ctx context.Context, address string, private bool, amtMsat uint64, pushAmtMsat uint64, minOpenConfirmations int32, txOpts lnchat.TxFeeOptions) (*lnchat.ChannelPoint, error)
OpenChannel provides a mock function with given fields: ctx, address, private, amtMsat, pushAmtMsat, minOpenConfirmations, txOpts
func (*LightManager) SendPayment ¶
func (_m *LightManager) SendPayment(ctx context.Context, recipient string, amt lnchat.Amount, payReq string, payOpts lnchat.PaymentOptions, payload map[uint64][]byte, filter func(*lnchat.Payment) bool) (<-chan lnchat.PaymentUpdate, error)
SendPayment provides a mock function with given fields: ctx, recipient, amt, payReq, payOpts, payload, filter
func (*LightManager) SignMessage ¶
SignMessage provides a mock function with given fields: ctx, message
func (*LightManager) SubscribeInvoiceUpdates ¶
func (_m *LightManager) SubscribeInvoiceUpdates(ctx context.Context, startIdx uint64, filter func(*lnchat.Invoice) bool) (<-chan lnchat.InvoiceUpdate, error)
SubscribeInvoiceUpdates provides a mock function with given fields: ctx, startIdx, filter
func (*LightManager) SubscribePaymentUpdates ¶
func (_m *LightManager) SubscribePaymentUpdates(ctx context.Context, startIdx uint64, filter func(*lnchat.Payment) bool) (<-chan lnchat.PaymentUpdate, error)
SubscribePaymentUpdates provides a mock function with given fields: ctx, startIdx, filter
func (*LightManager) VerifySignatureExtractPubkey ¶
func (_m *LightManager) VerifySignatureExtractPubkey(ctx context.Context, message []byte, signature []byte) (string, error)
VerifySignatureExtractPubkey provides a mock function with given fields: ctx, message, signature