Documentation ¶
Index ¶
- func ConnectPeer(client lnrpc.LightningClient, ctx context.Context, req ConnectPeerRequest) (r string, err error)
- func ListPeers(client lnrpc.LightningClient, ctx context.Context, latestErr string) (r []peer, err error)
- func RegisterPeerRoutes(r *gin.RouterGroup, db *sqlx.DB)
- type ConnectPeerRequest
- type LndAddress
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 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 ¶
Click to show internal directories.
Click to hide internal directories.