lnd

package
v0.0.0-...-9a3af51 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ForwardSync

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

func NewForwardSync

func NewForwardSync(
	nodeid []byte,
	client *LndClient,
	store history.Store,
) *ForwardSync

func (*ForwardSync) ForwardsSynchronize

func (s *ForwardSync) ForwardsSynchronize(ctx context.Context)

type LndClient

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

func NewLndClient

func NewLndClient(conf *config.LndConfig) (*LndClient, error)

func (*LndClient) Close

func (c *LndClient) Close()

func (*LndClient) GetChannel

func (c *LndClient) GetChannel(peerID []byte, channelPoint wire.OutPoint) (*lightning.GetChannelResult, error)

func (*LndClient) GetClosedChannels

func (c *LndClient) GetClosedChannels(nodeID string, channelPoints map[string]uint64) (map[string]uint64, error)

func (*LndClient) GetInfo

func (c *LndClient) GetInfo() (*lightning.GetInfoResult, error)

func (*LndClient) GetPeerId

func (c *LndClient) GetPeerId(scid *lightning.ShortChannelID) ([]byte, error)

func (*LndClient) IsConnected

func (c *LndClient) IsConnected(destination []byte) (bool, error)

func (*LndClient) ListChannels

func (c *LndClient) ListChannels() ([]*lightning.Channel, error)

func (*LndClient) OpenChannel

func (c *LndClient) OpenChannel(req *lightning.OpenChannelRequest) (*wire.OutPoint, error)

func (*LndClient) StartListeners

func (c *LndClient) StartListeners()

func (*LndClient) WaitChannelActive

func (c *LndClient) WaitChannelActive(peerID []byte, deadline time.Time) error

func (*LndClient) WaitOnline

func (c *LndClient) WaitOnline(peerID []byte, deadline time.Time) error

type LndHtlcInterceptor

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

func NewLndHtlcInterceptor

func NewLndHtlcInterceptor(
	conf *config.NodeConfig,
	client *LndClient,
	interceptor *interceptor.Interceptor,
) (*LndHtlcInterceptor, error)

func (*LndHtlcInterceptor) Start

func (i *LndHtlcInterceptor) Start() error

func (*LndHtlcInterceptor) Stop

func (i *LndHtlcInterceptor) Stop() error

func (*LndHtlcInterceptor) WaitStarted

func (i *LndHtlcInterceptor) WaitStarted()

type MacaroonCredential

type MacaroonCredential struct {
	MacaroonHex string
}

func NewMacaroonCredential

func NewMacaroonCredential(hex string) *MacaroonCredential

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