filter

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 5, 2018 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(name string, f factory)

Register registers a new filter

Types

type Filter

type Filter interface {
	Apply(*runtime.Node) *runtime.Node
}

Filter is a filter instance

type Set

type Set []Filter

Set is a list of configured filters

func New

func New(configs map[string]interface{}) (set Set, errs []error)

New returns and initializes a set of filters

func (Set) Apply

func (set Set) Apply(nodesOrigin *runtime.Nodes) *runtime.Nodes

Apply applies the filter set to the given node list and returns a new node list

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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