telnet

package
v2.28.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2020 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

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, telnetConfig *structs.GlobalTelnetServerConfiguration, validationService *validation.Service) *NetdataHandler

NewNetdataHandler - creates the new handler

func (*NetdataHandler) GetLogger

func (nh *NetdataHandler) GetLogger() *logh.ContextualLogger

GetLogger - returns the logger

func (*NetdataHandler) GetSourceType

func (nh *NetdataHandler) GetSourceType() *constants.SourceType

GetSourceType - returns the source type

func (*NetdataHandler) GetValidationService

func (nh *NetdataHandler) GetValidationService() *validation.Service

GetValidationService - returns the validation service instance

func (*NetdataHandler) Handle

func (nh *NetdataHandler) Handle(line, ip string) bool

Handle - extracts the points received by telnet

func (*NetdataHandler) SilenceLogs

func (nh *NetdataHandler) SilenceLogs() bool

SilenceLogs - checks the configuration to silence all validation logs

type OpenTSDBHandler

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

OpenTSDBHandler - handles opentsdb telnet format data

func NewOpenTSDBHandler

func NewOpenTSDBHandler(collector *collector.Collector, telnetConfig *structs.GlobalTelnetServerConfiguration, validationService *validation.Service) *OpenTSDBHandler

NewOpenTSDBHandler - creates the new handler

func (*OpenTSDBHandler) GetLogger

func (otsdbh *OpenTSDBHandler) GetLogger() *logh.ContextualLogger

GetLogger - returns the logger

func (*OpenTSDBHandler) GetSourceType

func (otsdbh *OpenTSDBHandler) GetSourceType() *constants.SourceType

GetSourceType - returns the source type

func (*OpenTSDBHandler) GetValidationService

func (otsdbh *OpenTSDBHandler) GetValidationService() *validation.Service

GetValidationService - returns the validation service instance

func (*OpenTSDBHandler) Handle

func (otsdbh *OpenTSDBHandler) Handle(line string, ip string) bool

Handle - extracts the points received by telnet

func (*OpenTSDBHandler) SilenceLogs

func (otsdbh *OpenTSDBHandler) SilenceLogs() bool

SilenceLogs - checks the configuration to silence all validation logs

Jump to

Keyboard shortcuts

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