Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MaskSecret ¶ added in v1.0.2
MaskSecret mask secret string
Types ¶
type Article ¶
type Article struct {
Title string `json:"title,omitempty"`
Description string `json:"description,omitempty"`
Content string `json:"content,omitempty"`
Link string `json:"link,omitempty"`
Updated string `json:"updated,omitempty"`
UpdatedParsed *time.Time `json:"updatedParsed,omitempty"`
Published string `json:"published,omitempty"`
PublishedParsed *time.Time `json:"publishedParsed,omitempty"`
GUID string `json:"guid,omitempty"`
Meta map[string]interface{} `json:"meta,omitempty"`
Tags []string `json:"tags,omitempty"`
}
Article model structure.
type Filter ¶
type Filter interface {
DoFilter(article *Article) error
GetSpec() FilterSpec
}
Filter is the filter interface
type FilterPlugin ¶
type FilterPlugin interface {
// Build a filter
Build(params url.Values, tags []string) (Filter, error)
}
FilterPlugin is the interface of an filter plugin
type FilterSpec ¶
FilterSpec contains filter specifications
type OutputPlugin ¶
type OutputPlugin interface {
// Build an output plugin
Build(params url.Values, tags []string) (OutputProvider, error)
}
OutputPlugin is the interface of an output plugin
type OutputProvider ¶
type OutputProvider interface {
Send(article *Article) error
GetSpec() OutputSpec
}
OutputProvider is the output provider interface
type OutputSpec ¶
OutputSpec contains output specifications
type PluginInfo ¶
type PluginInfo struct {
Name string
Type PluginType
}
PluginInfo contains plugins informations
type PluginType ¶
type PluginType int
PluginType is the plugin type qualifier
const ( // OUTPUT_PLUGIN output plugin type OUTPUT_PLUGIN PluginType = iota // FILTER_PLUGIN filter plugin type FILTER_PLUGIN )
Click to show internal directories.
Click to hide internal directories.