beehive: github.com/muesli/beehive/filters Index | Files | Directories

package filters

import "github.com/muesli/beehive/filters"

Package filters contains Beehive's filter system.

Index

Package Files

filters.go

func RegisterFilter Uses

func RegisterFilter(filter FilterInterface)

RegisterFilter gets called by Filters to register themselves.

type FilterInterface Uses

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 Uses

func GetFilter(identifier string) *FilterInterface

GetFilter returns a filter with a specific name

Directories

PathSynopsis
templatePackage templatefilter provides a template-based filter.

Package filters is imported by 42 packages. Updated 2017-09-04. Refresh now. Tools for package owners.