Documentation
¶
Index ¶
- func MaskSecret(secret string) string
- type Article
- type CacheItem
- type Filter
- type FilterDef
- type FilterDefCollection
- type FilterPlugin
- type FilterProps
- type OutputDef
- type OutputDefCollection
- type OutputPlugin
- type OutputProps
- type OutputProvider
- type PluginSpec
- type PluginType
- type PropSpec
- type PropType
- type Spec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Article ¶
type Article struct {
Title string `json:"title,omitempty"`
Text string `json:"text,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 FilterDef ¶
type FilterDef struct {
ID int `json:"id"`
Alias string `json:"alias"`
Spec
Condition string `json:"condition"`
Props FilterProps `json:"props:omitempty"`
Enabled bool `json:"enabled"`
}
FilterDef contains filter definition
type FilterDefCollection ¶
type FilterDefCollection []*FilterDef
FilterDefCollection is an array of filter definition
type FilterPlugin ¶
type FilterPlugin interface {
// Build a filter
Build(def *FilterDef) (Filter, error)
// Spec returns plugin specs
Spec() Spec
}
FilterPlugin is the interface of an filter plugin
type FilterProps ¶
type FilterProps map[string]interface{}
FilterProps constain properties of a filter
type OutputDef ¶
type OutputDef struct {
ID int `json:"id"`
Alias string `json:"alias"`
Spec
Condition string `json:"condition"`
Props OutputProps `json:"props:omitempty"`
Enabled bool `json:"enabled"`
}
OutputDef contains output definition
type OutputDefCollection ¶
type OutputDefCollection []*OutputDef
OutputDefCollection is an array of output definition
type OutputPlugin ¶
type OutputPlugin interface {
// Build an output plugin
Build(def *OutputDef) (OutputProvider, error)
// Spec returns plugin specs
Spec() Spec
}
OutputPlugin is the interface of an output plugin
type OutputProps ¶
type OutputProps map[string]interface{}
OutputProps contains properties of an output
type OutputProvider ¶
OutputProvider is the output provider interface
type PluginSpec ¶
type PluginSpec struct {
Type PluginType
Spec
}
PluginSpec contains plugins specifications
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.