buildin

package
v0.5.0-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

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) Run

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) Run

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) Run

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) Run

func (*SummaryPlugin) Type

func (i *SummaryPlugin) Type() types.PluginType

func (*SummaryPlugin) Version

func (i *SummaryPlugin) Version() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL