processors

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterProcessor

func RegisterProcessor(typ string, creator func(metric string, cfg []byte) (Processor, error))

RegisterProcessor .

Types

type Processor

type Processor interface {
	Process(content string) (string, map[string]interface{}, map[string]string, error)
	Keys() []*pb.FieldDefine
}

Processor .

func NewProcessor

func NewProcessor(name, typ string, cfg []byte) (Processor, error)

NewProcessor .

type Processors

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

Processors .

func New

func New() *Processors

New .

func (*Processors) Add

func (ps *Processors) Add(key string, tags map[string]string, name, typ string, config []byte) error

Add .

func (*Processors) Find

func (ps *Processors) Find(name, key string, tags map[string]string) []Processor

Find .

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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