Documentation ¶
Index ¶
- type Pipeline
- func (p *Pipeline) AddOutput(def *model.OutputDef) (model.OutputProvider, error)
- func (p *Pipeline) GetAvailableOutputs() []model.Spec
- func (p *Pipeline) GetOutput(id int) (model.OutputProvider, error)
- func (p *Pipeline) GetOutputDefs() []model.OutputDef
- func (p *Pipeline) Process(articles []*model.Article) uint64
- func (p *Pipeline) RemoveOutput(output *model.OutputDef) error
- func (p *Pipeline) UpdateOutput(output *model.OutputDef) (model.OutputProvider, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pipeline ¶
Pipeline is the object that process filters and outputs.
func NewPipeline ¶
NewPipeline creates a new pipeline
func (*Pipeline) GetAvailableOutputs ¶
GetAvailableOutputs get all available outputs
func (*Pipeline) GetOutput ¶
func (p *Pipeline) GetOutput(id int) (model.OutputProvider, error)
GetOutput retrieve an output of the pipeline
func (*Pipeline) GetOutputDefs ¶
GetOutputDefs return all output definitions of the pipeline
func (*Pipeline) RemoveOutput ¶
RemoveOutput removes an output from the pipeline
func (*Pipeline) UpdateOutput ¶
UpdateOutput update an output of the pipeline
Click to show internal directories.
Click to hide internal directories.