buildin

package
v0.6.0-beta Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DocMetaPluginName    = "docmeta"
	DocMetaPluginVersion = "1.0"
)
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
)
View Source
const (
	WebpackPluginName    = "webpack"
	WebpackPluginVersion = "1.0"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DocMetaPlugin

type DocMetaPlugin struct {
	// contains filtered or unexported fields
}

func NewDocMetaPlugin

func NewDocMetaPlugin(spec types.PluginSpec, scope types.PlugScope, svc Services) (*DocMetaPlugin, error)

func (DocMetaPlugin) Name

func (d DocMetaPlugin) Name() string

func (DocMetaPlugin) Run

func (DocMetaPlugin) Type

func (d DocMetaPlugin) Type() types.PluginType

func (DocMetaPlugin) Version

func (d DocMetaPlugin) Version() string

type DocumentManager

type DocumentManager interface {
	ListDocuments(ctx context.Context, filter types.DocFilter, order *types.DocumentOrder) ([]*types.Document, error)
	QueryDocuments(ctx context.Context, query string) ([]*types.Document, error)
	SaveDocument(ctx context.Context, doc *types.Document) error
	GetDocument(ctx context.Context, id int64) (*types.Document, error)
	GetDocumentByEntryId(ctx context.Context, oid int64) (*types.Document, error)
	DeleteDocument(ctx context.Context, id int64) error

	CreateFridayAccount(ctx context.Context, account *types.FridayAccount) error
}

type ExtendFieldManager

type ExtendFieldManager interface {
	RemoveEntry(ctx context.Context, parentId, entryId int64) error

	ListEntryProperty(ctx context.Context, id int64) (types.Properties, error)
	GetEntryProperty(ctx context.Context, id int64, fKey string) (*string, bool, error)
	SetEntryProperty(ctx context.Context, id int64, fKey, fVal string, encoded bool) error
	RemoveEntryProperty(ctx context.Context, id int64, fKey string) error
}

type IngestPlugin

type IngestPlugin struct {
	// contains filtered or unexported fields
}

func NewIngestPlugin

func NewIngestPlugin(spec types.PluginSpec, scope types.PlugScope, svc Services) (*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, svc Services) (*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 Services

type Services struct {
	DocumentManager
	ExtendFieldManager
}

type SummaryPlugin

type SummaryPlugin struct {
	// contains filtered or unexported fields
}

func NewSummaryPlugin

func NewSummaryPlugin(spec types.PluginSpec, scope types.PlugScope, svc Services) (*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

type WebpackPlugin

type WebpackPlugin struct {
	// contains filtered or unexported fields
}

func NewWebpackPlugin

func NewWebpackPlugin(spec types.PluginSpec, scope types.PlugScope, svc Services) (*WebpackPlugin, error)

func (*WebpackPlugin) Name

func (w *WebpackPlugin) Name() string

func (*WebpackPlugin) Run

func (*WebpackPlugin) Type

func (w *WebpackPlugin) Type() types.PluginType

func (*WebpackPlugin) Version

func (w *WebpackPlugin) Version() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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