parsers

package
v0.0.0-...-8c16e0d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNonParseableLine = errors.New("line could not be parsed")

Functions

This section is empty.

Types

type JsonLineParser

type JsonLineParser struct{}

func (*JsonLineParser) Parse

func (*JsonLineParser) Parse(line string) (*ParsedLine, error)

type LineParser

type LineParser interface {
	Parse(string) (*ParsedLine, error)
}

type ParsedLine

type ParsedLine struct {
	Timestamp string
	Logger    string
	Caller    string
	Level     string
	Message   string
	Fields    [][]string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL