Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server - the telnet server struct
func New ¶
func New(listenAddress string, onErrorTimeout int, maxBufferSize int64, collector *collector.Collector, stats *tsstats.StatsTS, logger *zap.Logger, telnetHandler TelnetDataHandler) *Server
New - creates a new telnet server
type TelnetDataHandler ¶
type TelnetDataHandler interface { // Handle - handles the data and send Handle(line string) }
TelnetDataHandler - handles the data from the telnet interface
Click to show internal directories.
Click to hide internal directories.