rfc6587

package
v0.0.0-...-c283e9f Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2021 License: BSD-3-Clause Imports: 5 Imported by: 4

Documentation

Index

Constants

View Source
const MaxMsgLen = 11000

MaxMsgLen is the maximum allowed length of the entire syslog message (excluding RFC6587 length-prefixed frame).

Variables

This section is empty.

Functions

func Bytes

func Bytes(m *rfc5424.Message) []byte

Bytes returns the RFC6587-framed bytes of an RFC5424 syslog Message, including length prefix.

func Split

func Split(data []byte, atEOF bool) (advance int, token []byte, err error)

Split is a bufio.SplitFunc that splits on RFC6587-framed syslog messages.

func SplitWithNewlines

func SplitWithNewlines(data []byte, atEOF bool) (advance int, token []byte, err error)

SplitWithNewlines is a bufio.SplitFunc that splits on RFC6587-framed syslog messages that are each followed by a newline.

Types

This section is empty.

Jump to

Keyboard shortcuts

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