processor

package
v6.2.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDoc

func CreateDoc(timestamp time.Time, docMappings []utility.DocMapping) beat.Event

func CreateSchema

func CreateSchema(schemaData string, url string) *jsonschema.Schema

func Validate

func Validate(raw interface{}, schema *jsonschema.Schema) error

Types

type Config

type Config struct {
	SmapMapper          sourcemap.Mapper
	LibraryPattern      *regexp.Regexp
	ExcludeFromGrouping *regexp.Regexp
}

type NewProcessor

type NewProcessor func(conf *Config) Processor

type Processor

type Processor interface {
	Validate(map[string]interface{}) error
	Transform(interface{}) ([]beat.Event, error)
	Name() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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