Documentation ¶
Index ¶
Constants ¶
View Source
const ( ConnectionTypeActive = "active" ConnectionTypeClosed = "closed" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cmgr ¶
type Cmgr interface { ListConnections(connType string, page, pageSize int) []conn.RelayConn // AddConnection adds a connection to the connection manager. AddConnection(conn conn.RelayConn) // RemoveConnection removes a connection from the connection manager. RemoveConnection(conn conn.RelayConn) // CountConnection returns the number of active connections. CountConnection(connType string) int GetActiveConnectCntByRelayLabel(label string) int // Start starts the connection manager. Start(ctx context.Context, errCH chan error) // Metrics related QueryNodeMetrics(ctx context.Context, req *ms.QueryNodeMetricsReq, refresh bool) (*ms.QueryNodeMetricsResp, error) QueryRuleMetrics(ctx context.Context, req *ms.QueryRuleMetricsReq, refresh bool) (*ms.QueryRuleMetricsResp, error) }
connection manager interface/ TODO support closed connection
type Config ¶
func (*Config) NeedMetrics ¶
type StatsPerRule ¶
type VersionInfo ¶
Click to show internal directories.
Click to hide internal directories.