codec

package
v6.2.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2018 License: Apache-2.0 Imports: 8 Imported by: 1,045

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeBCTimestampEncoder

func MakeBCTimestampEncoder() func(*common.Time, structform.ExtVisitor) error

func MakeTimestampEncoder

func MakeTimestampEncoder() func(*time.Time, structform.ExtVisitor) error

func Plugin

func Plugin(name string, f Factory) map[string][]interface{}

func RegisterType

func RegisterType(name string, gen Factory)

Types

type Codec

type Codec interface {
	Encode(index string, event *beat.Event) ([]byte, error)
}

func CreateEncoder

func CreateEncoder(info beat.Info, cfg Config) (Codec, error)

type Config

type Config struct {
	Namespace common.ConfigNamespace `config:",inline"`
}

type Factory

type Factory func(beat.Info, *common.Config) (Codec, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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