fileinfo

package
v0.0.0-...-12ddfe4 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileInfoParser

type FileInfoParser struct {
	DefaultTags map[string]string
	// contains filtered or unexported fields
}

func NewFileInfoParser

func NewFileInfoParser(fileRegex map[string]string, fileTagRegex map[string]string) (*FileInfoParser, error)

func (*FileInfoParser) Parse

func (p *FileInfoParser) Parse(buf []byte) ([]telegraf.Metric, error)

func (*FileInfoParser) ParseLine

func (p *FileInfoParser) ParseLine(line string) (telegraf.Metric, error)

func (*FileInfoParser) SetDefaultTags

func (p *FileInfoParser) SetDefaultTags(tags map[string]string)

func (*FileInfoParser) SetRelativeDir

func (p *FileInfoParser) SetRelativeDir(dir string)

Provided so that you can accurately calcuate the relative path against A specific source directory

Jump to

Keyboard shortcuts

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