lndwrap

package
v0.2.9-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package lndwrap wraps various calls to lndclient for convenience. It offers wrapping for paginated queries that will obtain all entries from a desired index onwards.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListChannels

func ListChannels(ctx context.Context, lnd lndclient.LightningClient,
	publicOnly bool) func() ([]lndclient.ChannelInfo, error)

ListChannels wraps the listchannels call to lnd, with a publicOnly bool that can be used to toggle whether private channels are included.

func ListForwards

func ListForwards(ctx context.Context, maxForwards uint64, startTime,
	endTime time.Time, lnd lndclient.LightningClient) (
	[]lndclient.ForwardingEvent, error)

ListForwards makes paginated calls to our forwarding events api.

func ListInvoices

func ListInvoices(ctx context.Context, startOffset, maxInvoices uint64,
	lnd lndclient.LightningClient) ([]lndclient.Invoice, error)

ListInvoices makes paginated calls to lnd to get our full set of invoices.

func ListPayments

func ListPayments(ctx context.Context, startOffset, maxPayments uint64,
	lnd lndclient.LightningClient) ([]lndclient.Payment, error)

ListPayments makes a set of paginated calls to lnd to get our full set of payments.

Types

This section is empty.

Jump to

Keyboard shortcuts

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