Documentation
¶
Index ¶
- type Facility
- type IMessage
- type Severity
- type UnparsableMessage
- func (self *UnparsableMessage) Facility() Facility
- func (self *UnparsableMessage) Hostname() string
- func (self *UnparsableMessage) Message() string
- func (self *UnparsableMessage) Pid() string
- func (self *UnparsableMessage) Process() string
- func (self *UnparsableMessage) RawMessage() *[]byte
- func (self *UnparsableMessage) Severity() Severity
- func (self *UnparsableMessage) TimeStamp() time.Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Facility ¶
type Facility int
const ( FacilityUnknown Facility = -1 Kernel Facility = 0 User Facility = 1 Mail Facility = 2 Sysdaemon Facility = 3 Secauth Facility = 4 Syslogd Facility = 5 Lineprinter Facility = 6 Netnews Facility = 7 Uucp Facility = 8 Clock Facility = 9 Secauth2 Facility = 10 Ftp Facility = 11 Ntp Facility = 12 Logaudit Facility = 13 Logalert Facility = 14 Clock2 Facility = 15 Local0 Facility = 16 Local1 Facility = 17 Local2 Facility = 18 Local3 Facility = 19 Local4 Facility = 20 Local5 Facility = 21 Local6 Facility = 22 Local7 Facility = 23 )
type IMessage ¶
type IMessage interface { RawMessage() *[]byte TimeStamp() time.Time /* Common sense says that the pid should be an int, but in practice that would require taking the string the syslogparser module gives, converting it to an int, and then converting it into a string as that's how it's stored in the attributes map. tl/dr - using int would result in string->int->string conversion on each message. */ Pid() string Facility() Facility Severity() Severity Process() string Hostname() string Message() string }
type UnparsableMessage ¶
type UnparsableMessage struct {
// contains filtered or unexported fields
}
func NewUnparsableMessage ¶
func NewUnparsableMessage(rawMsg *[]byte) *UnparsableMessage
func (*UnparsableMessage) Facility ¶
func (self *UnparsableMessage) Facility() Facility
func (*UnparsableMessage) Hostname ¶
func (self *UnparsableMessage) Hostname() string
func (*UnparsableMessage) Message ¶
func (self *UnparsableMessage) Message() string
func (*UnparsableMessage) Pid ¶
func (self *UnparsableMessage) Pid() string
func (*UnparsableMessage) Process ¶
func (self *UnparsableMessage) Process() string
func (*UnparsableMessage) RawMessage ¶
func (self *UnparsableMessage) RawMessage() *[]byte
SD-248: default values to should conform to RFC
func (*UnparsableMessage) Severity ¶
func (self *UnparsableMessage) Severity() Severity
func (*UnparsableMessage) TimeStamp ¶
func (self *UnparsableMessage) TimeStamp() time.Time
Click to show internal directories.
Click to hide internal directories.