package
0.1.1
Repository: https://github.com/elastic/go-lumber.git
Documentation: pkg.go.dev

# Packages

Package v1 implements the lumberjack server supporting protocol version 1.
Package v2 implements the lumberjack server supporting protocol version 2.

# Functions

Channel option is used to register custom channel received batches will be forwarded to.
JSONDecoder sets an alternative json decoder for parsing events if protocol version 2 is enabled.
Keepalive configures the keepalive interval returning an ACK of length 0 to lumberjack client, notifying clients the batch being still active.
ListenAndServe listens on the TCP network address addr and handles batch requests from accepted lumberjack clients.
ListenAndServeWith uses binder to create a listener for establishing a lumberjack endpoint.
NewWithListener creates a new Server using an existing net.Listener.
Timeout configures server network timeouts.
TLS enables and configures TLS support in lumberjack server.
V1 enables lumberjack protocol version 1.
V2 enables lumberjack protocol version 2.

# Variables

ErrListenerClosed indicates the multiplexing network listener being closed.
ErrNoVersionEnabled indicates no lumberjack protocol version being enabled when instantiating a server.

# Interfaces

Server serves multiple lumberjack clients.

# Type aliases

Option type for configuring server run options.