Help us shape the future of Go! Take the 2026 Go Developer Survey

format

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2016 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 Apache2

type Apache2 struct {
	RegExp
}

func NewApache2

func NewApache2(config *Apache2Config) *Apache2

func (*Apache2) TransformConfig

func (f *Apache2) TransformConfig(config *Apache2Config) *RegExpConfig

type Apache2Config

type Apache2Config struct {
	Type string `description:"type of the log to parse (common, combined or error)"`
}

type CSV

type CSV struct {
	// contains filtered or unexported fields
}

func NewCSV

func NewCSV(config *CSVConfig) *CSV

func (*CSV) Parse

func (f *CSV) Parse(line string) intf.Record

func (*CSV) SetConfig

func (f *CSV) SetConfig(config *CSVConfig)

type CSVConfig

type CSVConfig struct {
	Fields    string
	Format    string
	NotQuoted bool
	Quote     byte
	Trim      bool
	Separator byte
}

type FormatHelper

type FormatHelper struct {
	// contains filtered or unexported fields
}

func NewFormatHelper

func NewFormatHelper(config string) *FormatHelper

func (*FormatHelper) Format

func (h *FormatHelper) Format(field, value string) interface{}

func (*FormatHelper) GetFields

func (h *FormatHelper) GetFields() map[string]*fieldFormat

func (*FormatHelper) SetConfig

func (h *FormatHelper) SetConfig(config string)

type JSON

type JSON struct {
}

func NewJSON

func NewJSON(config *JSONConfig) *JSON

func (*JSON) Parse

func (f *JSON) Parse(line string) intf.Record

func (*JSON) SetConfig

func (f *JSON) SetConfig(config *JSONConfig)

type JSONConfig

type JSONConfig struct {
	Empty string
}

type Nginx

type Nginx struct {
	RegExp
}

func NewNginx

func NewNginx(config *NginxConfig) *Nginx

func (*Nginx) TransformConfig

func (f *Nginx) TransformConfig(config *NginxConfig) *RegExpConfig

type NginxConfig

type NginxConfig struct {
	Type string `description:"type of the log to parse (combined or error)"`
}

type RegExp

type RegExp struct {
	// contains filtered or unexported fields
}

func NewRegExp

func NewRegExp(config *RegExpConfig) *RegExp

func (*RegExp) Parse

func (f *RegExp) Parse(line string) intf.Record

func (*RegExp) SetConfig

func (f *RegExp) SetConfig(config *RegExpConfig)

type RegExpConfig

type RegExpConfig struct {
	Pattern string
	Format  string
}

Jump to

Keyboard shortcuts

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