Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
A Decoder reads and decodes structured log messages from an input stream.
func NewDecoder ¶
NewDecoder returns a new decoder that reads from r.
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
An Encoder writes structured log messages to an output stream.
func NewEncoder ¶
NewEncoder returns a new encoder that writes to w.
type LogReader ¶
type LogReader interface { io.Closer // ReadMessage reads the next log message emitted by container. // Note: Time field in message is set in UTC. // // Returns nil, io.EOF if all log messages emitted by container // have been consumed. ReadMessage() (*Message, error) }
LogReader provides ReadMessage() which reads a structured log message in sequential order as emitted by the container.
Click to show internal directories.
Click to hide internal directories.