package
7.17.28
Repository: https://github.com/elastic/beats.git
Documentation: pkg.go.dev

# Functions

FactoryDelimiter return a function to split line using a custom delimiter supporting multibytes delimiter, the delimiter is stripped from the returned value.
FactoryRFC6587Framing returns a function that splits based on octet counting or non-transparent framing as defined in RFC6587.
IsMaxReadBufferErr returns true when the error is ErrMaxReadBuffer.
NewDeadlineReader returns a new DeadlineReader.
NewListener creates a new Listener.
NewResetableLimitedReader returns a new ResetableLimitedReader.
SplitFunc allows to create a `bufio.SplitFunc` based on a framing & delimiter provided.
SplitHandlerFactory allows creation of a handler that has splitting capabilities.

# Constants

# Variables

ErrMaxReadBuffer returns when too many bytes was read on the io.Reader.

# Structs

DeadlineReader allow read to a io.Reader to timeout, the timeout is refreshed on every read.
Listener represent a generic connected server.
ListenerConfig exposes the shared listener configuration.
ResetableLimitedReader is based on LimitedReader but allow to reset the byte read and return a specific error when we reach the limit.

# Type aliases

ConnectionHandler interface provides mechanisms for handling of incoming connections.
FramingType are supported framing options for the SplitFunc.
HandlerFactory returns a ConnectionHandler func.
ListenerFactory returns a net.Listener.
MetadataFunc defines callback executed when a line is read from the split handler.