Documentation ¶
Index ¶
- func AddNodeToDB(db *sqlx.DB, nodeConnectionDetails ConnectionDetails) error
- func GetNodeIdByGRPC(db *sqlx.DB, nodeConnectionDetails ConnectionDetails) (int, error)
- func RegisterSettingRoutes(r *gin.RouterGroup, db *sqlx.DB, restartLNDSub func() error)
- func RegisterUnauthenticatedRoutes(r *gin.RouterGroup, db *sqlx.DB)
- func UpdateNodeFiles(db *sqlx.DB, nodeConnectionDetails ConnectionDetails) error
- type ConnectionDetails
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddNodeToDB ¶ added in v0.8.6
func AddNodeToDB(db *sqlx.DB, nodeConnectionDetails ConnectionDetails) error
func GetNodeIdByGRPC ¶ added in v0.8.6
func GetNodeIdByGRPC(db *sqlx.DB, nodeConnectionDetails ConnectionDetails) (int, error)
func RegisterSettingRoutes ¶
func RegisterSettingRoutes(r *gin.RouterGroup, db *sqlx.DB, restartLNDSub func() error)
func RegisterUnauthenticatedRoutes ¶ added in v0.7.0
func RegisterUnauthenticatedRoutes(r *gin.RouterGroup, db *sqlx.DB)
func UpdateNodeFiles ¶ added in v0.8.6
func UpdateNodeFiles(db *sqlx.DB, nodeConnectionDetails ConnectionDetails) error
Types ¶
type ConnectionDetails ¶ added in v0.7.3
type ConnectionDetails struct { LocalNodeId int Name string GRPCAddress string TLSFileBytes []byte MacaroonFileBytes []byte Disabled bool Deleted bool PubKey *string }
func GetActiveNodesConnectionDetails ¶ added in v0.8.19
func GetActiveNodesConnectionDetails(db *sqlx.DB) (activeNodes []ConnectionDetails, err error)
func GetNodeConnectionDetailsById ¶ added in v0.8.19
func GetNodeConnectionDetailsById(db *sqlx.DB, nodeId int) (connectionDetails ConnectionDetails, err error)
Click to show internal directories.
Click to hide internal directories.