Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArrayDecoder ¶
type ArrayDecoder struct {
// contains filtered or unexported fields
}
func NewArrayDecoder ¶
func NewArrayDecoder(log logger.Logger) *ArrayDecoder
func (*ArrayDecoder) FromByteArray ¶
func (d *ArrayDecoder) FromByteArray(raw []byte) (LogRecords, error)
func (*ArrayDecoder) FromReader ¶
func (d *ArrayDecoder) FromReader(reader io.Reader) (LogRecords, error)
func (*ArrayDecoder) FromString ¶
func (d *ArrayDecoder) FromString(raw string) (LogRecords, error)
type LogRecord ¶
type LogRecord struct {
Stream string `json:"stream"`
Time string `json:"time"`
Log string `json:"log"`
Kubernetes struct {
Namespace string `json:"namespace_name"`
PodName string `json:"pod_name"`
ContainerName string `json:"container_name"`
Host string `json:"host"`
Labels map[string]string `json:"labels"`
} `json:"kubernetes"`
}
type LogRecords ¶
type LogRecords []LogRecord
Click to show internal directories.
Click to hide internal directories.