Documentation ¶
Index ¶
- type Chain
- func (chain *Chain) Add(def *model.FilterDef) (model.Filter, error)
- func (chain *Chain) Apply(article *model.Article) error
- func (chain *Chain) Get(id string) (model.Filter, error)
- func (chain *Chain) GetAvailableFilters() []model.Spec
- func (chain *Chain) GetFilterDefs() model.FilterDefCollection
- func (chain *Chain) Remove(id string) error
- func (chain *Chain) Update(id string, update *model.FilterDef) (model.Filter, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chain ¶
type Chain struct {
// contains filtered or unexported fields
}
Chain contains filter chain
func NewChainFilter ¶
func NewChainFilter(definitions model.FilterDefCollection) (*Chain, error)
NewChainFilter create new chain filter
func (*Chain) GetAvailableFilters ¶
GetAvailableFilters get all available filters
func (*Chain) GetFilterDefs ¶
func (chain *Chain) GetFilterDefs() model.FilterDefCollection
GetFilterDefs return definitions of the chain filter
Click to show internal directories.
Click to hide internal directories.