Documentation ¶
Index ¶
Constants ¶
View Source
const ( IngestPluginName = "ingest" IngestPluginVersion = "1.0" )
View Source
const ( KeywordsPluginName = "keywords" KeywordsPluginVersion = "1.0" )
View Source
const ( RssSourcePluginName = "rss" RssSourcePluginVersion = "1.0" )
View Source
const ( SummaryPluginName = "summary" SummaryPluginVersion = "1.0" DefaultSummaryToken = 300 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IngestPlugin ¶
type IngestPlugin struct {
// contains filtered or unexported fields
}
func NewIngestPlugin ¶
func NewIngestPlugin(spec types.PluginSpec, scope types.PlugScope) (*IngestPlugin, error)
func (*IngestPlugin) Name ¶
func (i *IngestPlugin) Name() string
func (*IngestPlugin) Type ¶
func (i *IngestPlugin) Type() types.PluginType
func (*IngestPlugin) Version ¶
func (i *IngestPlugin) Version() string
type KeywordsPlugin ¶
type KeywordsPlugin struct {
// contains filtered or unexported fields
}
func NewKeyWordsPlugin ¶
func NewKeyWordsPlugin(spec types.PluginSpec, scope types.PlugScope) (*KeywordsPlugin, error)
func (*KeywordsPlugin) Name ¶
func (i *KeywordsPlugin) Name() string
func (*KeywordsPlugin) Type ¶
func (i *KeywordsPlugin) Type() types.PluginType
func (*KeywordsPlugin) Version ¶
func (i *KeywordsPlugin) Version() string
type RssSourcePlugin ¶
type RssSourcePlugin struct {
// contains filtered or unexported fields
}
func BuildRssSourcePlugin ¶
func BuildRssSourcePlugin(ctx context.Context, spec types.PluginSpec, scope types.PlugScope) *RssSourcePlugin
func (*RssSourcePlugin) Name ¶
func (r *RssSourcePlugin) Name() string
func (*RssSourcePlugin) SourceInfo ¶
func (r *RssSourcePlugin) SourceInfo() (string, error)
func (*RssSourcePlugin) Type ¶
func (r *RssSourcePlugin) Type() types.PluginType
func (*RssSourcePlugin) Version ¶
func (r *RssSourcePlugin) Version() string
type SummaryPlugin ¶
type SummaryPlugin struct {
// contains filtered or unexported fields
}
func NewSummaryPlugin ¶
func NewSummaryPlugin(spec types.PluginSpec, scope types.PlugScope) (*SummaryPlugin, error)
func (*SummaryPlugin) Name ¶
func (i *SummaryPlugin) Name() string
func (*SummaryPlugin) Type ¶
func (i *SummaryPlugin) Type() types.PluginType
func (*SummaryPlugin) Version ¶
func (i *SummaryPlugin) Version() string
Click to show internal directories.
Click to hide internal directories.