Documentation ¶
Index ¶
- func AddNodeToDB(db *sqlx.DB, implementation commons.Implementation, grpcAddress string, ...) (nodeConnectionDetails, error)
- func GetNodeIdByGRPC(db *sqlx.DB, grpcAddress string) (int, error)
- func InitializeManagedNodeCache(db *sqlx.DB) error
- func InitializeManagedSettingsCache(db *sqlx.DB) error
- func RegisterSettingRoutes(r *gin.RouterGroup, db *sqlx.DB, ...)
- func RegisterUnauthenticatedRoutes(r *gin.RouterGroup, db *sqlx.DB)
- func SetNodeConnectionDetails(db *sqlx.DB, ncd nodeConnectionDetails) (nodeConnectionDetails, error)
- func SetNodeConnectionDetailsByConnectionDetails(db *sqlx.DB, nodeId int, status commons.Status, grpcAddress string, ...) error
- type ConnectionDetails
- func GetActiveNodesConnectionDetails(db *sqlx.DB) ([]ConnectionDetails, error)
- func GetAmbossPingNodesConnectionDetails(db *sqlx.DB) ([]ConnectionDetails, error)
- func GetConnectionDetailsById(db *sqlx.DB, nodeId int) (ConnectionDetails, error)
- func GetVectorPingNodesConnectionDetails(db *sqlx.DB) ([]ConnectionDetails, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddNodeToDB ¶ added in v0.8.6
func GetNodeIdByGRPC ¶ added in v0.8.6
func InitializeManagedNodeCache ¶ added in v0.10.0
func InitializeManagedSettingsCache ¶ added in v0.10.0
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
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)
Click to show internal directories.
Click to hide internal directories.