Documentation ¶
Index ¶
- func NewOutputResponseFromDef(def *model.OutputDef) *app.OutputResponse
- type Builder
- func (ob *Builder) Alias(alias *string) *Builder
- func (ob *Builder) Build() *model.OutputDef
- func (ob *Builder) Condition(condition *string) *Builder
- func (ob *Builder) Enable(status bool) *Builder
- func (ob *Builder) From(source model.OutputDef) *Builder
- func (ob *Builder) FromURI(URI string) *Builder
- func (ob *Builder) ID(ID string) *Builder
- func (ob *Builder) NewID() *Builder
- func (ob *Builder) Props(props model.OutputProps) *Builder
- func (ob *Builder) Spec(name string) *Builder
- type Manager
- func (m *Manager) AddOutputProcessor(def *model.OutputDef) (*Processor, error)
- func (m *Manager) GetAvailableOutputs() []model.Spec
- func (m *Manager) GetOutputDefs() []model.OutputDef
- func (m *Manager) GetOutputProcessor(id string) (*Processor, error)
- func (m *Manager) Push(articles []*model.Article)
- func (m *Manager) RemoveOutputProcessor(def *model.OutputDef) error
- func (m *Manager) Shutdown()
- func (m *Manager) UpdateOutputProcessor(def *model.OutputDef) (*Processor, error)
- type Processor
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewOutputResponseFromDef ¶ added in v3.4.0
func NewOutputResponseFromDef(def *model.OutputDef) *app.OutputResponse
NewOutputResponseFromDef creates new Output response from a definition
Types ¶
type Builder ¶ added in v3.4.0
type Builder struct {
// contains filtered or unexported fields
}
Builder is used to create an Output definition
func NewBuilder ¶ added in v3.4.0
func NewBuilder() *Builder
NewBuilder creates new Output definition builder instance
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager is the object that manage outputs.
func NewOutputManager ¶
NewOutputManager creates a new output manager
func (*Manager) AddOutputProcessor ¶
AddOutputProcessor add an output processor to the manager
func (*Manager) GetAvailableOutputs ¶
GetAvailableOutputs get all available outputs
func (*Manager) GetOutputDefs ¶
GetOutputDefs return all output definitions of the pipeline
func (*Manager) GetOutputProcessor ¶
GetOutputProcessor removes an output from the pipeline
func (*Manager) RemoveOutputProcessor ¶
RemoveOutputProcessor removes an output from the pipeline
type Processor ¶
Processor is the object that operate an output.
func NewOutputProcessor ¶
func NewOutputProcessor(out model.Output, filters *filter.Chain, cm *cache.Manager) (*Processor, error)
NewOutputProcessor creates a new output processor
Click to show internal directories.
Click to hide internal directories.