filter

package
v0.0.0-...-bf621fb Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Set

func Set(name string, f FilterFn)

Types

type Config

type Config struct {
	Type string `hcl:"type" yaml:"type"` // filter type (from filters map)
}

type Filter

type Filter interface {
	Name() string
	Start(inChan <-chan *event.Event, outChan chan<- *event.Event) error
}

func New

func New(cfg *config.ConfigRaw, common *config.Common) (Filter, error)

type FilterFn

type FilterFn func(*config.ConfigRaw, *config.Common) (Filter, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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