Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EntryHandler ¶
EntryHandler is something that can "handle" entries.
type EntryHandlerFunc ¶
EntryHandlerFunc is modelled on http.HandlerFunc.
type EntryMiddleware ¶
type EntryMiddleware interface {
Wrap(next EntryHandler) EntryHandler
}
EntryMiddleware is something that takes on EntryHandler and produces another.
func AddLabelsMiddleware ¶
func AddLabelsMiddleware(additionalLabels model.LabelSet) EntryMiddleware
AddLabelsMiddleware is an EntryMiddleware that adds some labels.
type EntryMiddlewareFunc ¶
type EntryMiddlewareFunc func(next EntryHandler) EntryHandler
EntryMiddlewareFunc is modelled on http.HandlerFunc.
func (EntryMiddlewareFunc) Wrap ¶
func (e EntryMiddlewareFunc) Wrap(next EntryHandler) EntryHandler
Wrap implements EntryMiddleware.
type EntryParser ¶
type EntryParser int
EntryParser describes how to parse log lines.
const ( Docker EntryParser = iota Raw CRI )
Different supported EntryParsers.
func (EntryParser) String ¶
func (e EntryParser) String() string
String returns a string representation of the EntryParser.
func (*EntryParser) UnmarshalYAML ¶
func (e *EntryParser) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML implements yaml.Unmarshaler.
func (EntryParser) Wrap ¶
func (e EntryParser) Wrap(next EntryHandler) EntryHandler
Wrap implements EntryMiddleware.
Click to show internal directories.
Click to hide internal directories.