codecs

package
v0.6.9 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Codec

type Codec struct {
	Name    string
	Role    string
	Charset string
	Options map[string]interface{}
	// contains filtered or unexported fields
}

func New

func New(name string, conf map[string]interface{}, logger commons.Logger, cwl string) *Codec

func (*Codec) NewDecoder

func (c *Codec) NewDecoder(r io.Reader) (Decoder, error)

func (*Codec) NewEncoder

func (c *Codec) NewEncoder(w io.Writer) (Encoder, error)

func (*Codec) String

func (c *Codec) String() string

type CodecCollection

type CodecCollection struct {
	Default *Codec
	Enc     *Codec
	Dec     *Codec
}

func (*CodecCollection) NewDecoder

func (c *CodecCollection) NewDecoder(r io.Reader) (Decoder, error)

func (*CodecCollection) NewEncoder

func (c *CodecCollection) NewEncoder(w io.Writer) (Encoder, error)

type Decoder

type Decoder interface {
	Decode(*interface{}) error
	SetOptions(map[string]interface{}, commons.Logger, string) error
	More() bool
	Buffer() []byte
}

type Encoder

type Encoder interface {
	Encode(map[string]interface{}) error
	SetOptions(map[string]interface{}, commons.Logger, string) error
}

Directories

Path Synopsis
Parses comma-separated value data into individual fields Code generated by "bitfanDoc -codec csv"; DO NOT EDIT
Parses comma-separated value data into individual fields Code generated by "bitfanDoc -codec csv"; DO NOT EDIT
Code generated by "bitfanDoc -codec json"; DO NOT EDIT
Code generated by "bitfanDoc -codec json"; DO NOT EDIT
Code generated by "bitfanDoc -codec json_lines"; DO NOT EDIT
Code generated by "bitfanDoc -codec json_lines"; DO NOT EDIT
Code generated by "bitfanDoc -codec encoder"; DO NOT EDIT doc codec
Code generated by "bitfanDoc -codec encoder"; DO NOT EDIT doc codec
The multiline codec will collapse multiline messages and merge them into a single event.
The multiline codec will collapse multiline messages and merge them into a single event.
Code generated by "bitfanDoc -codec encoder"; DO NOT EDIT doc codec
Code generated by "bitfanDoc -codec encoder"; DO NOT EDIT doc codec
Code generated by "bitfanDoc -codec rubydebug"; DO NOT EDIT This codec pretty prints event
Code generated by "bitfanDoc -codec rubydebug"; DO NOT EDIT This codec pretty prints event
Parses comma-separated value data into individual fields Code generated by "bitfanDoc -codec w3c"; DO NOT EDIT
Parses comma-separated value data into individual fields Code generated by "bitfanDoc -codec w3c"; DO NOT EDIT

Jump to

Keyboard shortcuts

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