rfc5424

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const NIL_VALUE = '-'
View Source
const PRI_MAX_LEN = 3
View Source
const VALID_TIMESTAMP = time.RFC3339Nano

Variables

View Source
var VALID_TIMESTAMPS = []string{
	time.RFC3339,
}

Functions

This section is empty.

Types

type RFC5424

type RFC5424 struct {
	PRI       int
	Timestamp time.Time
	Hostname  string
	Tag       string
	Message   string
	PID       string
	MsgID     string
	// contains filtered or unexported fields
}

func NewRFC5424Parser

func NewRFC5424Parser(opts ...RFC5424Option) *RFC5424

func (*RFC5424) Parse

func (r *RFC5424) Parse(message []byte) error

type RFC5424Option

type RFC5424Option func(*RFC5424)

func WithStrictHostname

func WithStrictHostname() RFC5424Option

Jump to

Keyboard shortcuts

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