pipeline

package module
v0.0.0-...-826a4e3 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2021 License: MPL-2.0 Imports: 3 Imported by: 0

README

pipeline

staged stream-processing pipeline framework in go

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorSourceFinished = errors.New("source finished")

ErrorSourceFinished should be returned by the ingest action when the source has no input data left

Functions

This section is empty.

Types

type Pipeline

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

Pipeline represents a stream processing pipeline

func New

func New() *Pipeline

New is the pipeline constructor

func (*Pipeline) AddStage

func (p *Pipeline) AddStage(name string, threads int, outChanSize int, transform transform)

AddStage adds a stage to the processing pipeline

func (*Pipeline) Run

func (p *Pipeline) Run()

Run runs the pipeline and blocks until done

func (*Pipeline) SetSink

func (p *Pipeline) SetSink(name string, threads int, commit publish)

SetSink sets data sink in the pipeline

func (*Pipeline) SetSource

func (p *Pipeline) SetSource(name string, threads int, outChanSize int, ingest ingest)

SetSource sets data ingestion source in the pipeline

Directories

Path Synopsis
example
file command

Jump to

Keyboard shortcuts

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