Documentation
¶
Index ¶
Constants ¶
View Source
const ( ConnectionTypeActive = "active" ConnectionTypeClosed = "closed" )
Variables ¶
View Source
var DummyConfig = &Config{}
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)
}
connection manager interface
type Config ¶
func (*Config) NeedMetrics ¶
type StatsPerRule ¶
type VersionInfo ¶
Click to show internal directories.
Click to hide internal directories.