parsers

package
v1.30.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 2 Imported by: 151

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEOF = errors.New("not enough data")

ErrEOF is similar to io.EOF but is a separate type to make sure we have checked the parsers using it to have the same meaning (i.e. it needs more data to complete parsing) and a way to detect partial data.

View Source
var Parsers = map[string]Creator{}

Parsers contains the registry of all known parsers (following the new style)

Functions

func Add added in v1.22.0

func Add(name string, creator Creator)

Add adds a parser to the registry. Usually this function is called in the plugin's init function

Types

type Creator added in v1.22.0

type Creator func(defaultMetricName string) telegraf.Parser

Creator is the function to create a new parser

Jump to

Keyboard shortcuts

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