Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotString = errors.New("no string in log body") ErrNotJson = errors.New("no json object in log body") )
Functions ¶
func IsValidParser ¶
Types ¶
type JsonParser ¶
type JsonParser struct {
// contains filtered or unexported fields
}
func NewJsonParser ¶
func NewJsonParser(config JsonParserConfig) (*JsonParser, error)
type JsonParserConfig ¶
type JsonParserConfig struct { }
type Parser ¶
Parser is the interface for parsing log messages.
func NewParsers ¶
NewParsers creates a list of valid parser instances. Invalid parsers or those that cannot be created will be skipped with warning logs including the source string.
type ParserConfig ¶
type ParserConfig struct {
Type ParserType
}
ParserConfig is a structure used in configs for creating parsers instances.
Click to show internal directories.
Click to hide internal directories.