lnd

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client represents an LND node client

func NewClient

func NewClient(cfg *config.Config) *Client

NewClient creates a new LND client

func (*Client) Connect

func (c *Client) Connect() error

Connect establishes a connection to the LND node

func (*Client) Disconnect

func (c *Client) Disconnect() error

Disconnect closes the connection to the LND node

func (*Client) IsConnected

func (c *Client) IsConnected() bool

IsConnected returns true if connected to LND

func (*Client) SubscribeEvents

func (c *Client) SubscribeEvents() (<-chan events.Event, error)

SubscribeEvents subscribes to LND events

type ClientConfig

type ClientConfig struct {
	Host         string
	Port         int
	TLSCertPath  string
	MacaroonPath string
}

ClientConfig holds the configuration for the LND client

type MacaroonCredential

type MacaroonCredential struct {
	MacaroonHex string
}

MacaroonCredential implements the credentials.PerRPCCredentials interface

func (*MacaroonCredential) GetRequestMetadata

func (m *MacaroonCredential) GetRequestMetadata(ctx context.Context, uri ...string) (map[string]string, error)

func (*MacaroonCredential) RequireTransportSecurity

func (m *MacaroonCredential) RequireTransportSecurity() bool

Jump to

Keyboard shortcuts

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