Documentation ¶
Index ¶
- Constants
- type Manager
- func (manager *Manager) AddServer(serverConfiguration *structs.TelnetServerConfiguration, ...) error
- func (manager *Manager) CountConnections(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (manager *Manager) HaltTelnetBalancingProcess(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (manager *Manager) Shutdown()
Constants ¶
View Source
const CountConnsURI string = "node/connections"
CountConnsURI - the uri to the get node connections
View Source
const HTTPHeaderTotalConnections string = "X-Total-Connections"
HTTPHeaderTotalConnections - the header name to set the total tasks number
View Source
const HaltConnsURI string = "node/halt/balancing"
HaltConnsURI - the uri to
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
func (*Manager) HaltTelnetBalancingProcess ¶
func (manager *Manager) HaltTelnetBalancingProcess(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
HaltTelnetBalancingProcess - tells to this node to halt any running balancing process
Click to show internal directories.
Click to hide internal directories.