telnet

package
v2.15.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2019 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const TelnetFormatTagsRegexp string = `([0-9A-Za-z-\._\%\&\#\;\/]+)=([0-9A-Za-z-\._\%\&\#\;\/]+)`

TelnetFormatTagsRegexp - contains the regexp to parse the tags

Variables

This section is empty.

Functions

This section is empty.

Types

type NetdataHandler

type NetdataHandler struct {
	// contains filtered or unexported fields
}

NetdataHandler - handles netdata telnet format data

func NewNetdataHandler

func NewNetdataHandler(regexpCacheDuration string, collector *collector.Collector, logger *zap.Logger) *NetdataHandler

NewNetdataHandler - creates the new handler

func (*NetdataHandler) Handle

func (nh *NetdataHandler) Handle(line string)

Handle - extracts the points received by telnet

func (*NetdataHandler) SourceName

func (nh *NetdataHandler) SourceName() string

sourceName - returns the connection type name

type OpenTSDBHandler

type OpenTSDBHandler struct {
	// contains filtered or unexported fields
}

OpenTSDBHandler - handles opentsdb telnet format data

func NewOpenTSDBHandler

func NewOpenTSDBHandler(collector *collector.Collector, logger *zap.Logger) *OpenTSDBHandler

NewOpenTSDBHandler - creates the new handler

func (*OpenTSDBHandler) Handle

func (otsdbh *OpenTSDBHandler) Handle(line string)

Handle - extracts the points received by telnet

func (*OpenTSDBHandler) SourceName

func (otsdbh *OpenTSDBHandler) SourceName() string

sourceName - returns the connection type name

Jump to

Keyboard shortcuts

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