lnmock

package
v0.3.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LightManager

type LightManager struct {
	mock.Mock
}

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

func (_m *LightManager) ConnectNode(ctx context.Context, address string, hostport string) error

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

func (_m *LightManager) DecodePayReq(ctx context.Context, payReq string) (*lnchat.PayReq, error)

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

func (_m *LightManager) GetSelfInfo(ctx context.Context) (lnchat.SelfInfo, error)

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

func (_m *LightManager) LookupInvoice(ctx context.Context, payHash string) (*lnchat.Invoice, error)

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

func (_m *LightManager) SignMessage(ctx context.Context, message []byte) ([]byte, error)

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

Jump to

Keyboard shortcuts

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