package
0.9.0
Repository: https://github.com/datadog/datadog-agent.git
Documentation: pkg.go.dev

# Functions

InitializeDecoder returns a properly initialized Decoder.
New returns an initialized Decoder.
NewAutoMultilineHandler returns a new AutoMultilineHandler.
NewBytesSequenceMatcher Returns a new matcher based on custom bytes sequence.
NewDecodedInput returns a new decoded input.
NewDecoderWithEndLineMatcher initialize a decoder with given endline strategy.
NewInput returns a new input.
NewMessage returns a new output.
NewMultiLineHandler returns a new MultiLineHandler.
NewMultiLineParser returns a new MultiLineParser.
NewSingleLineHandler returns a new SingleLineHandler.
NewSingleLineParser returns a new SingleLineParser.

# Variables

Utf16beEOL is the bytes sequence for UTF-16 Big-Endian end-of-line char.
Utf16leEOL is the bytes sequence for UTF-16 Little-Endian end-of-line char.

# Structs

AutoMultilineHandler can attempts to detect a known/commob pattern (a timestamp) in the logs and will switch to a MultiLine handler if one is detected and the thresholds are met.
BytesSequenceMatcher defines the criterion to whether to end a line based on an arbitrary byte sequence.
DecodedInput represents a decoded line and the raw length.
Decoder splits raw data into lines and passes them to a lineParser that passes them to a lineHandler that emits outputs Input->[decoder]->[parser]->[handler]->Message.
DetectedPattern is a container to safely access a detected multiline pattern.
Input represents a chunk of line.
Message represents a structured line.
MultiLineHandler makes sure that multiple lines from a same content are properly put together.
MultiLineParser makes sure that chunked lines are properly put together.
NewLineMatcher implements EndLineMatcher for line ending with '\n'.
SingleLineHandler takes care of tracking the line length and truncating them when they are too long.
SingleLineParser makes sure that multiple lines from a same content are properly put together.

# Interfaces

EndLineMatcher defines the criterion to whether to end a line or not.
LineHandler handles raw lines to form structured lines.
LineParser e.