Documentation ¶
Index ¶
Constants ¶
View Source
const HTTPHeaderTotalConnections string = "X-Total-Connections"
HTTPHeaderTotalConnections - the header name to set the total tasks number
View Source
const URI string = "node/connections"
URI - the uri from the get connections
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager - controls the telnet servers
func New ¶
func New(globalConfiguration *structs.GlobalTelnetServerConfiguration, httpListenPort int, collector *collector.Collector, stats *tsstats.StatsTS, logger *zap.Logger) (*Manager, error)
New - creates a new manager instance
func (*Manager) AddServer ¶
func (manager *Manager) AddServer(serverConfiguration *structs.TelnetServerConfiguration, telnetHandler telnetsrv.TelnetDataHandler) error
AddServer - adds a new server
func (*Manager) CountConnections ¶
func (manager *Manager) CountConnections(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
CountConnections - returns the number of telnet connections from this node
Click to show internal directories.
Click to hide internal directories.