settings

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

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