go-syslog.v2: gopkg.in/mcuadros/go-syslog.v2/format Index | Files

package format

import "gopkg.in/mcuadros/go-syslog.v2/format"

Index

Package Files

automatic.go format.go rfc3164.go rfc5424.go rfc6587.go

type Automatic Uses

type Automatic struct{}

func (*Automatic) GetParser Uses

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

func (*Automatic) GetSplitFunc Uses

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

type Format Uses

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

type LogParser Uses

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

type LogParts Uses

type LogParts map[string]interface{}

type RFC3164 Uses

type RFC3164 struct{}

func (*RFC3164) GetParser Uses

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

func (*RFC3164) GetSplitFunc Uses

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

type RFC5424 Uses

type RFC5424 struct{}

func (*RFC5424) GetParser Uses

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

func (*RFC5424) GetSplitFunc Uses

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

type RFC6587 Uses

type RFC6587 struct{}

func (*RFC6587) GetParser Uses

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

func (*RFC6587) GetSplitFunc Uses

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

Package format imports 8 packages (graph) and is imported by 11 packages. Updated 2016-11-06. Refresh now. Tools for package owners.