filters

package
Version: v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2020 License: AGPL-3.0 Imports: 0 Imported by: 12

Documentation

Overview

Package filters contains Beehive's filter system.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterFilter

func RegisterFilter(filter FilterInterface)

RegisterFilter gets called by Filters to register themselves.

Types

type FilterInterface

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

func GetFilter(identifier string) *FilterInterface

GetFilter returns a filter with a specific name

Source Files

Directories

Path Synopsis
Package templatefilter provides a template-based filter.
Package templatefilter provides a template-based filter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL