peers

package
v0.16.14 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectPeer

func ConnectPeer(client lnrpc.LightningClient, ctx context.Context, req ConnectPeerRequest) (r string, err error)

func ListPeers

func ListPeers(client lnrpc.LightningClient, ctx context.Context, latestErr string) (r []peer, err error)

func RegisterPeerRoutes added in v0.10.0

func RegisterPeerRoutes(r *gin.RouterGroup, db *sqlx.DB)

Types

type ConnectPeerRequest

type ConnectPeerRequest struct {
	NodeId     int        `json:"nodeId"`
	LndAddress LndAddress `json:"lndAddress"`
	Perm       *bool      `json:"perm"`
	TimeOut    *uint64    `json:"timeOut"`
}

type LndAddress

type LndAddress struct {
	PubKey string `json:"pubKey"`
	Host   string `json:"host"`
}

Jump to

Keyboard shortcuts

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