pipeline

package
v0.45.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2026 License: Apache-2.0 Imports: 5 Imported by: 8 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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 New

func New() *Pipeline

func (*Pipeline) AddFilter

func (p *Pipeline) AddFilter(filter plugin.Plugin)

func (*Pipeline) AddInput

func (p *Pipeline) AddInput(input plugin.Plugin)

func (*Pipeline) AddOutput

func (p *Pipeline) AddOutput(output plugin.Plugin)

func (*Pipeline) ErrorChan

func (p *Pipeline) ErrorChan() <-chan error

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

func (p *Pipeline) IsRunning() bool

IsRunning returns true if the pipeline is currently running

func (*Pipeline) RegisterObserver added in v0.38.0

func (p *Pipeline) RegisterObserver(ch chan<- event.Event)

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().

func (*Pipeline) Start

func (p *Pipeline) Start() error

Start initiates the configured plugins and starts the necessary background processes to run the pipeline. A stopped pipeline can be restarted by calling Start() again. Note: After restart, consumers must re-obtain channels via ErrorChan() as the old channels are closed.

func (*Pipeline) Stop

func (p *Pipeline) Stop() error

Stop shuts down the pipeline and all plugins Stop is idempotent and safe to call multiple times A stopped pipeline can be restarted by calling Start() again

Jump to

Keyboard shortcuts

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