telnetmgr

package
v2.18.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2019 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

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

func (*Manager) Shutdown

func (manager *Manager) Shutdown()

Shutdown - shuts down all servers

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL