Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { Ts time.Time // timestamp the content was read Content []byte `json:"content"` // actual content read Bytes int `json:"bytes,omitempty"` // total number of bytes read to generate the message Fields util.MapStr // optional fields that can be added by reader Meta util.MapStr // deprecated LineNumbers []int64 `json:"line_numbers"` // line numbers of current content Offset int64 `json:"offset"` // content offset in file }
func (*Message) AddFlagsWithKey ¶
AddFlagsWithKey adds flags to the message with an arbitrary key. If the field does not exist, it is created.
Directories
¶
Path | Synopsis |
---|---|
dtfmt
Package dtfmt provides time formatter support with pattern syntax mostly similar to joda DateTimeFormat.
|
Package dtfmt provides time formatter support with pattern syntax mostly similar to joda DateTimeFormat. |
streambuf
Package streambuf provides helpers for buffering multiple packet payloads and some general parsing functions.
|
Package streambuf provides helpers for buffering multiple packet payloads and some general parsing functions. |
Click to show internal directories.
Click to hide internal directories.