Documentation ¶
Overview ¶
Copyright 2023 Matthew Continisio
Copyright 2023 Matthew Continisio ¶
Copyright 2023 Matthew Continisio
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FilterProcessor ¶
type FilterProcessor struct {
Keys []string
}
Filters keys
func (*FilterProcessor) Process ¶
func (p *FilterProcessor) Process(l Line) Line
type JsonReader ¶
type JsonReader struct{}
Read JSON input
func NewJsonReader ¶
func NewJsonReader() *JsonReader
type JsonWriter ¶
Write JSON output
func NewJsonWriter ¶
func NewJsonWriter() *JsonWriter
func (*JsonWriter) Write ¶
func (w *JsonWriter) Write(l Line) error
type LogfmtReader ¶
type LogfmtReader struct {
// contains filtered or unexported fields
}
Read logfmt input
func NewLogfmtReader ¶
func NewLogfmtReader() *LogfmtReader
func (*LogfmtReader) HandleLogfmt ¶
func (r *LogfmtReader) HandleLogfmt(key, val []byte) error
type LogfmtWriter ¶
Write logfmt output
func NewLogfmtWriter ¶
func NewLogfmtWriter(opts LogfmtWriter) *LogfmtWriter
func (*LogfmtWriter) Write ¶
func (w *LogfmtWriter) Write(l Line) error
type ValueWriter ¶
type ValueWriter struct {
LogfmtWriter
}
Write value-only output
func NewValueWriter ¶
func NewValueWriter(opts LogfmtWriter) *ValueWriter
func (*ValueWriter) Write ¶
func (w *ValueWriter) Write(l Line) error
Click to show internal directories.
Click to hide internal directories.