Documentation ¶
Index ¶
Constants ¶
View Source
const DEFAULT_SYSLOG_PRIORITY = "13"
Variables ¶
This section is empty.
Functions ¶
func Fatal ¶
func Fatal(format string, v ...interface{})
Fatal is like log.Fatal, but invokes cleanup (tail) before exiting.
func RegisterTailCleanup ¶
func RegisterTailCleanup()
Types ¶
type MessageCommon ¶
type MessageCommon struct { Text string `json:"text"` // Text content of the stream message NodeID string `json:"node_id"` // IP address of the node from which this message originated UnixTime int64 `json:"unix_time"` // Unix timestamp HumanTime string `json:"human_time"` // Human readable time (unspecified format) Syslog syslogMessage `json:"syslog"` }
MessageCommon contains common fields required for representing any message stream
func NewMessageCommon ¶
func NewMessageCommon(text string, t time.Time, node string) MessageCommon
Click to show internal directories.
Click to hide internal directories.