format

package
v2.3.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2019 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Automatic

type Automatic struct{}

func (*Automatic) GetParser

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

func (*Automatic) GetSplitFunc

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

type Format

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

type LogParser

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

type LogParts

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