harvester

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Byte = 1 << (iota * 10)
	KiByte
	MiByte
	GiByte
	TiByte
	PiByte
	EiByte
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Encoding       string                  `config:"encoding"`
	BufferSize     int                     `config:"harvester_buffer_size"`
	MaxBytes       int                     `config:"max_bytes" validate:"min=0,nonzero"`
	LineTerminator readfile.LineTerminator `config:"line_terminator"`
	JSON           *readjson.Config        `config:"json"`
	Multiline      *multiline.Config       `config:"multiline"`
	LineNumber     *linenumber.Config
}

type Harvester

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

func NewHarvester

func NewHarvester(path string, offset int64) (*Harvester, error)

func (*Harvester) Close

func (h *Harvester) Close() error

func (*Harvester) NewJsonFileReader

func (h *Harvester) NewJsonFileReader(pattern string, showLineNumber bool) (reader.Reader, error)

func (*Harvester) NewLogFileReader

func (h *Harvester) NewLogFileReader(pattern string, showLineNumber bool) (reader.Reader, error)

Jump to

Keyboard shortcuts

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