filters

package
v0.0.0-...-2c3d6b8 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllFilterNames filterNames

AllFilterNames holds list of filter names. All the filter names in echo of the filter packages should be appended to AllFilterNames during respective init()

Functions

func NewFilterManager

func NewFilterManager() *filterManager

Types

type Filter

type Filter interface {
	Apply(context.Context, []bookmark.Bookmark) ([]bookmark.Bookmark, error)
	fmt.Stringer
}

type FilterName

type FilterName string

FilterName holds filter's name

func ToFilterName

func ToFilterName(s fmt.Stringer) FilterName

ToFilterName converts stringer to FilterName type

func (FilterName) String

func (e FilterName) String() string

String converts FilterName to string, making FilterName type implement fmt.Stringer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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