settings

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 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, serviceChannel chan commons.ServiceChannelMessage)

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,
	status commons.Status,
	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
	PingSystem        commons.PingSystem
}

func GetActiveNodesConnectionDetails added in v0.8.19

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

func GetAmbossPingNodesConnectionDetails added in v0.11.0

func GetAmbossPingNodesConnectionDetails(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

func GetVectorPingNodesConnectionDetails added in v0.11.0

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

func (*ConnectionDetails) AddPingSystem added in v0.11.0

func (connectionDetails *ConnectionDetails) AddPingSystem(pingSystem commons.PingSystem)

func (*ConnectionDetails) HasPingSystem added in v0.11.0

func (connectionDetails *ConnectionDetails) HasPingSystem(pingSystem commons.PingSystem) bool

func (*ConnectionDetails) RemovePingSystem added in v0.11.0

func (connectionDetails *ConnectionDetails) RemovePingSystem(pingSystem commons.PingSystem)

Jump to

Keyboard shortcuts

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