processor

package
v0.0.0-...-31600e6 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigString

func ConfigString(name string, v interface{}) string

Types

type ErrorKeyMissing

type ErrorKeyMissing struct {
	Key string // Key that was not found in the event.
}

ErrorKeyMissing is returned by processors when source field is missing from the event.

Use errors.Is(err, ErrorKeyMissing{}) to test if a returned error is an ErrorKeyMissing.

func (ErrorKeyMissing) Error

func (e ErrorKeyMissing) Error() string

func (ErrorKeyMissing) Is

func (e ErrorKeyMissing) Is(target error) bool

type Event

type Event interface {
	Put(key string, v *event.Value) (*event.Value, error)
	TryPut(key string, v *event.Value) (*event.Value, error)
	Get(key string) *event.Value
	Delete(key string) *event.Value

	// Cancel any further processing by the pipeline for this event.
	Cancel()

	// Drop the event.
	Drop()
}

type Processor

type Processor interface {
	Process(event Event) error
}

Directories

Path Synopsis
Code generated by processor/generate.go - DO NOT EDIT.
Code generated by processor/generate.go - DO NOT EDIT.
Code generated by processor/generate.go - DO NOT EDIT.
Code generated by processor/generate.go - DO NOT EDIT.
Code generated by processor/generate.go - DO NOT EDIT.
Code generated by processor/generate.go - DO NOT EDIT.
Code generated by processor/generate.go - DO NOT EDIT.
Code generated by processor/generate.go - DO NOT EDIT.
Code generated by processor/generate.go - DO NOT EDIT.
Code generated by processor/generate.go - DO NOT EDIT.
Code generated by processor/generate.go - DO NOT EDIT.
Code generated by processor/generate.go - DO NOT EDIT.

Jump to

Keyboard shortcuts

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