Documentation ¶
Index ¶
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 ¶
NewChainFilter creates a new filter chain
func (*Chain) GetSpec ¶
func (c *Chain) GetSpec() []model.FilterSpec
GetSpec return specification of the chain filter
type FetchFilter ¶
type FetchFilter struct {
// contains filtered or unexported fields
}
FetchFilter is a filter that try to fetch the original article content
func (*FetchFilter) DoFilter ¶
func (f *FetchFilter) DoFilter(article *model.Article) error
DoFilter applies filter on the article
func (*FetchFilter) GetSpec ¶
func (f *FetchFilter) GetSpec() model.FilterSpec
GetSpec return filter specifications
type MinifyFilter ¶
type MinifyFilter struct {
// contains filtered or unexported fields
}
MinifyFilter is a filter that minify HTML content
func (*MinifyFilter) DoFilter ¶
func (f *MinifyFilter) DoFilter(article *model.Article) error
DoFilter applies filter on the article
func (*MinifyFilter) GetSpec ¶
func (f *MinifyFilter) GetSpec() model.FilterSpec
GetSpec return filter specifications
type TitleFilter ¶
type TitleFilter struct {
// contains filtered or unexported fields
}
TitleFilter is a foo filter
func (*TitleFilter) DoFilter ¶
func (f *TitleFilter) DoFilter(article *model.Article) error
DoFilter applies filter on the article
func (*TitleFilter) GetSpec ¶
func (f *TitleFilter) GetSpec() model.FilterSpec
GetSpec return filter specifications
Click to show internal directories.
Click to hide internal directories.