settings

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: MIT Imports: 21 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, implementation commons.Implementation,
	grpcAddress string, tlsDataBytes []byte, macaroonDataBytes []byte) (nodeConnectionDetails, error)

func GetNodeIdByGRPC added in v0.8.6

func GetNodeIdByGRPC(db *sqlx.DB, grpcAddress string) (int, error)

func InitializeManagedNodeCache added in v0.10.0

func InitializeManagedNodeCache(db *sqlx.DB) error

func InitializeManagedSettingsCache added in v0.10.0

func InitializeManagedSettingsCache(db *sqlx.DB) 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 SetNodeConnectionDetails added in v0.10.0

func SetNodeConnectionDetails(db *sqlx.DB, ncd nodeConnectionDetails) (nodeConnectionDetails, error)

func SetNodeConnectionDetailsByConnectionDetails added in v0.10.0

func SetNodeConnectionDetailsByConnectionDetails(
	db *sqlx.DB,
	nodeId int,
	grpcAddress string,
	tlsDataBytes []byte,
	macaroonDataBytes []byte) error

Types

type ConnectionDetails added in v0.7.3

type ConnectionDetails struct {
	NodeId            int
	Name              string
	GRPCAddress       string
	TLSFileBytes      []byte
	MacaroonFileBytes []byte
	Status            commons.Status
}

func GetActiveNodesConnectionDetails added in v0.8.19

func GetActiveNodesConnectionDetails(db *sqlx.DB) ([]ConnectionDetails, error)

func GetConnectionDetailsById added in v0.10.0

func GetConnectionDetailsById(db *sqlx.DB, nodeId int) (ConnectionDetails, error)

GetConnectionDetailsById will still fetch details even if node is disabled or deleted

Jump to

Keyboard shortcuts

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