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
type RFC5424Option ¶
type RFC5424Option func(*RFC5424)
func WithCurrentYear ¶
func WithCurrentYear() RFC5424Option
func WithStrictHostname ¶
func WithStrictHostname() RFC5424Option
Click to show internal directories.
Click to hide internal directories.