schema

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// JSON ...
	JSON = "json"
	// Text ...
	Text = "text"
)

Variables

This section is empty.

Functions

func Names

func Names() []string

Names ...

Types

type Column added in v1.1.0

type Column string

Column ...

const (
	// Timestamp ...
	Timestamp Column = "timestamp"
	// Level ...
	Level Column = "level"
	// Message ...
	Message Column = "message"
	// Application ...
	Application Column = "application"
	// Action function, method, etc.
	Action Column = "action"
	// Line ...
	Line Column = "line"
	// Context thread, session id, or some other execution context.
	Context Column = "context"
	// Entity class, struct, etc.
	Entity Column = "entity"
	// Error ...
	Error Column = "error"
)

type Schema

type Schema struct {
	Name              string            `yaml:"-"`
	Format            string            `yaml:"format,omitempty"`
	Priority          uint8             `yaml:"priority,omitempty"`
	PredicatesByField map[string]string `yaml:"predicates,omitempty"`
	FieldByColumn     map[string]string `yaml:"mapping,omitempty"`
	TemplateByColumn  map[string]string `yaml:"display,omitempty"`
	Fields            []string
	TextPattern       *regroup.ReGroup
	// contains filtered or unexported fields
}

Schema ...

func GuessSchema

func GuessSchema(s string, schemasToCheck ...Schema) *Schema

GuessSchema ..

func LoadSchemas

func LoadSchemas() ([]Schema, error)

LoadSchemas ...

Jump to

Keyboard shortcuts

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