Documentation ¶
Index ¶
- type ForwardSync
- type LndClient
- func (c *LndClient) Close()
- func (c *LndClient) GetChannel(peerID []byte, channelPoint wire.OutPoint) (*lightning.GetChannelResult, error)
- func (c *LndClient) GetClosedChannels(nodeID string, channelPoints map[string]uint64) (map[string]uint64, error)
- func (c *LndClient) GetInfo() (*lightning.GetInfoResult, error)
- func (c *LndClient) GetPeerId(scid *lightning.ShortChannelID) ([]byte, error)
- func (c *LndClient) IsConnected(destination []byte) (bool, error)
- func (c *LndClient) ListChannels() ([]*lightning.Channel, error)
- func (c *LndClient) OpenChannel(req *lightning.OpenChannelRequest) (*wire.OutPoint, error)
- func (c *LndClient) StartListeners()
- func (c *LndClient) WaitChannelActive(peerID []byte, deadline time.Time) error
- func (c *LndClient) WaitOnline(peerID []byte, deadline time.Time) error
- type LndHtlcInterceptor
- type MacaroonCredential
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 (*LndClient) GetChannel ¶
func (*LndClient) GetClosedChannels ¶
func (*LndClient) GetPeerId ¶
func (c *LndClient) GetPeerId(scid *lightning.ShortChannelID) ([]byte, error)
func (*LndClient) OpenChannel ¶
func (*LndClient) StartListeners ¶
func (c *LndClient) StartListeners()
func (*LndClient) WaitChannelActive ¶
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 (*MacaroonCredential) RequireTransportSecurity ¶
func (m *MacaroonCredential) RequireTransportSecurity() bool
Click to show internal directories.
Click to hide internal directories.