Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { // File contains filename of the file from where the records come File string // Records are the list of parsed records Records []*Record // TagsCond information, attached to the list of records Meta Meta // contains filtered or unexported fields }
Event is a structure which contains a list of records, parsed from a file. Event has a consumption confirmation mechanism, consumer must call Confirm() as soon as he finished handling the even.
func (*Event) MarshalJSON ¶
type Record ¶
type Record struct { // Raw bytes, representing file entry read Data []byte // Record date Date time.Time // Fields contains text in "<key1>=<value1>,<key2>=<value2>,..." format Fields string }
Record is a file entry (e.g. log line) represented as a slice of bytes plus some parsed out (or additional) meta information attached to it. Sometimes it's convenient to parse out the needed info from the file entry on the client side and not sink, it saves sink resources. Also sink may simply not know some information which client knows (e.g. containerId).
Click to show internal directories.
Click to hide internal directories.