import "github.com/muesli/beehive/filters"
Package filters contains Beehive's filter system.
func RegisterFilter(filter FilterInterface)
RegisterFilter gets called by Filters to register themselves.
type FilterInterface interface { // Name of the filter Name() string // Description of the filter Description() string // Execute the filter Passes(data interface{}, value interface{}) bool }
FilterInterface is an interface all Filters implement.
func GetFilter(identifier string) *FilterInterface
GetFilter returns a filter with a specific name
Path | Synopsis |
---|---|
template | Package templatefilter provides a template-based filter. |
Package filters is imported by 42 packages. Updated 2017-09-04. Refresh now. Tools for package owners.