Documentation ¶
Index ¶
Constants ¶
View Source
const MaxBufferSize = 2
Variables ¶
This section is empty.
Functions ¶
func NewWavefrontElements ¶
func NewWavefrontElements() []elementParser
NewWavefrontElements returns a slice of elementParser's for the Graphite format
Types ¶
type Parser ¶ added in v1.24.0
type Parser struct { DefaultTags map[string]string `toml:"-"` Log telegraf.Logger `toml:"-"` // contains filtered or unexported fields }
func (*Parser) SetDefaultTags ¶ added in v1.24.0
type PointParser ¶
type PointParser struct { Elements []elementParser // contains filtered or unexported fields }
PointParser is a thread-unsafe parser and must be kept in a pool.
type PointScanner ¶
type PointScanner struct {
// contains filtered or unexported fields
}
Lexical Point Scanner
func NewScanner ¶
func NewScanner(r io.Reader) *PointScanner
func (*PointScanner) Scan ¶
func (s *PointScanner) Scan() (Token, string)
Scan returns the next token and literal value.
Click to show internal directories.
Click to hide internal directories.