format

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2019 License: MIT Imports: 7 Imported by: 85

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Automatic added in v2.1.0

type Automatic struct{}

func (*Automatic) GetParser added in v2.1.0

func (f *Automatic) GetParser(line []byte) LogParser

func (*Automatic) GetSplitFunc added in v2.1.0

func (f *Automatic) GetSplitFunc() bufio.SplitFunc

type Format

type Format interface {
	GetParser([]byte) LogParser
	GetSplitFunc() bufio.SplitFunc
}

type LogParser added in v2.2.1

type LogParser interface {
	Parse() error
	Dump() LogParts
	Location(*time.Location)
}

type LogParts added in v2.2.1

type LogParts map[string]interface{}

type RFC3164

type RFC3164 struct{}

func (*RFC3164) GetParser

func (f *RFC3164) GetParser(line []byte) LogParser

func (*RFC3164) GetSplitFunc

func (f *RFC3164) GetSplitFunc() bufio.SplitFunc

type RFC5424

type RFC5424 struct{}

func (*RFC5424) GetParser

func (f *RFC5424) GetParser(line []byte) LogParser

func (*RFC5424) GetSplitFunc

func (f *RFC5424) GetSplitFunc() bufio.SplitFunc

type RFC6587

type RFC6587 struct{}

func (*RFC6587) GetParser

func (f *RFC6587) GetParser(line []byte) LogParser

func (*RFC6587) GetSplitFunc

func (f *RFC6587) GetSplitFunc() bufio.SplitFunc

Jump to

Keyboard shortcuts

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