beehive: Index | Files | Directories

package filters

import ""

Package filters contains Beehive's filter system.


Package Files


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


templatePackage templatefilter provides a template-based filter.

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