Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBuiltinFilterPlugins ¶
func GetBuiltinFilterPlugins() map[string]model.FilterPlugin
GetBuiltinFilterPlugins get builtin plugins list
Types ¶
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) (bool, error)
DoFilter applies filter on the article
func (*FetchFilter) GetDef ¶
func (f *FetchFilter) GetDef() model.FilterDef
GetDef return filter definition
type FetchFilterPlugin ¶
type FetchFilterPlugin struct{}
FetchFilterPlugin is the fetch filter plugin
func (*FetchFilterPlugin) Spec ¶
func (p *FetchFilterPlugin) Spec() model.Spec
Spec returns plugin spec
type HTTPFilter ¶
type HTTPFilter struct {
// contains filtered or unexported fields
}
HTTPFilter is a filter that try to http the original article content
func (*HTTPFilter) DoFilter ¶
func (f *HTTPFilter) DoFilter(article *model.Article) (bool, error)
DoFilter applies filter on the article
func (*HTTPFilter) GetDef ¶
func (f *HTTPFilter) GetDef() model.FilterDef
GetDef return filter definition
type HTTPFilterPlugin ¶
type HTTPFilterPlugin struct{}
HTTPFilterPlugin is the http filter plugin
func (*HTTPFilterPlugin) Spec ¶
func (p *HTTPFilterPlugin) Spec() model.Spec
Spec returns plugin spec
type InterestFilter ¶ added in v3.3.0
type InterestFilter struct {
// contains filtered or unexported fields
}
InterestFilter is a interest filter
func (*InterestFilter) DoFilter ¶ added in v3.3.0
func (f *InterestFilter) DoFilter(article *model.Article) (bool, error)
DoFilter applies filter on the article
func (*InterestFilter) GetDef ¶ added in v3.3.0
func (f *InterestFilter) GetDef() model.FilterDef
GetDef return filter definition
type InterestFilterPlugin ¶ added in v3.3.0
type InterestFilterPlugin struct{}
InterestFilterPlugin is the Interest filter plugin
func (*InterestFilterPlugin) Spec ¶ added in v3.3.0
func (p *InterestFilterPlugin) Spec() model.Spec
Spec returns plugin spec
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) (bool, error)
DoFilter applies filter on the article
func (*MinifyFilter) GetDef ¶
func (f *MinifyFilter) GetDef() model.FilterDef
GetDef return filter definition
type MinifyFilterPlugin ¶
type MinifyFilterPlugin struct{}
MinifyFilterPlugin is the minification filter plugin
func (*MinifyFilterPlugin) Spec ¶
func (p *MinifyFilterPlugin) Spec() model.Spec
Spec returns plugin spec
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) (bool, error)
DoFilter applies filter on the article
func (*TitleFilter) GetDef ¶
func (f *TitleFilter) GetDef() model.FilterDef
GetDef return filter definition
type TitleFilterPlugin ¶
type TitleFilterPlugin struct{}
TitleFilterPlugin is the title filter plugin
func (*TitleFilterPlugin) Spec ¶
func (p *TitleFilterPlugin) Spec() model.Spec
Spec returns plugin spec