cln

package
v0.0.0-...-74f12b9 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type ClnClient

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

func NewClnClient

func NewClnClient(config *config.ClnConfig) (*ClnClient, error)

func (*ClnClient) GetChannel

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

func (*ClnClient) GetClosedChannels

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

func (*ClnClient) GetInfo

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

func (*ClnClient) GetPeerId

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

func (*ClnClient) IsConnected

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

func (*ClnClient) ListChannels

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

func (*ClnClient) OpenChannel

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

func (*ClnClient) WaitChannelActive

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

func (*ClnClient) WaitOnline

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

type ClnHtlcInterceptor

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

func NewClnHtlcInterceptor

func NewClnHtlcInterceptor(conf *config.NodeConfig, client *ClnClient, interceptor common.InterceptHandler) (*ClnHtlcInterceptor, error)

func (*ClnHtlcInterceptor) Start

func (i *ClnHtlcInterceptor) Start() error

func (*ClnHtlcInterceptor) Stop

func (i *ClnHtlcInterceptor) Stop() error

func (*ClnHtlcInterceptor) WaitStarted

func (i *ClnHtlcInterceptor) WaitStarted()

type CustomMsgClient

type CustomMsgClient struct {
	lightning.CustomMsgClient
	// contains filtered or unexported fields
}

func NewCustomMsgClient

func NewCustomMsgClient(conf *config.ClnConfig, client *ClnClient) *CustomMsgClient

func (*CustomMsgClient) Recv

func (*CustomMsgClient) Send

func (*CustomMsgClient) Start

func (c *CustomMsgClient) Start() error

func (*CustomMsgClient) Stop

func (i *CustomMsgClient) Stop() error

func (*CustomMsgClient) WaitStarted

func (i *CustomMsgClient) WaitStarted()

type ForwardSync

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

func NewForwardSync

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

func (*ForwardSync) ForwardsSynchronize

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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