flynn: github.com/flynn/flynn/pkg/syslog/rfc6587 Index | Files

package rfc6587

import "github.com/flynn/flynn/pkg/syslog/rfc6587"

Index

Package Files

rfc6587.go

Constants

const MaxMsgLen = 11000

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

func Bytes Uses

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

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

func Split Uses

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 Uses

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.

Package rfc6587 imports 5 packages (graph) and is imported by 10 packages. Updated 2016-11-10. Refresh now. Tools for package owners.