Documentation
¶
Index ¶
- type Pipeline
- func (p *Pipeline) AddFilter(filter plugin.Plugin)
- func (p *Pipeline) AddInput(input plugin.Plugin)
- func (p *Pipeline) AddOutput(output plugin.Plugin)
- func (p *Pipeline) ErrorChan() <-chan error
- func (p *Pipeline) IsRunning() bool
- func (p *Pipeline) RegisterObserver(ch chan<- event.Event)
- func (p *Pipeline) Start() error
- func (p *Pipeline) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pipeline ¶
type Pipeline struct {
// contains filtered or unexported fields
}
func (*Pipeline) ErrorChan ¶
ErrorChan returns the pipeline's error channel (read-only). Note: After calling Stop() and Start() to restart the pipeline, consumers must call ErrorChan() again to get the new channel. References obtained before restart will point to a closed channel.
func (*Pipeline) IsRunning ¶ added in v0.37.0
IsRunning returns true if the pipeline is currently running
func (*Pipeline) RegisterObserver ¶ added in v0.38.0
RegisterObserver sets an observer channel that receives a copy of every event passing through the pipeline. Sends are non-blocking: if the channel is full, events are dropped. Only one observer is supported. Call before Start().