pipeline

package
v0.0.0-...-ffe269a Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const SKIP_ALL = -1

Variables

This section is empty.

Functions

This section is empty.

Types

type Collect

type Collect struct {
}

func (Collect) Run

func (self Collect) Run(input, output Pipe)

type Filter

type Filter struct {
	FilterFunc func(item interface{}) bool
}

func (Filter) Run

func (self Filter) Run(input, output Pipe)

type LastValue

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

func (*LastValue) Last

func (self *LastValue) Last() interface{}

func (*LastValue) Run

func (self *LastValue) Run(input, output Pipe)

type Nonblocking

type Nonblocking struct {
}

func (Nonblocking) Run

func (self Nonblocking) Run(input, output Pipe)

type Pipe

type Pipe chan interface{}

Pipeline basic block element

func Pipeline

func Pipeline(input Pipe, processors ...Processor) Pipe

func (Pipe) Clone

func (p Pipe) Clone(n int) []Pipe

func (Pipe) Destination

func (p Pipe) Destination(pipes ...Pipe)

func (Pipe) Next

func (p Pipe) Next(proc Processor) Pipe

Next sets up following pipeline chain element It returns last Pipe in Pipeline

type Processor

type Processor interface {
	Run(input, output Pipe)
}

Pipeline processing interface

type Skip

type Skip struct {
	Count int
}

func (Skip) Run

func (self Skip) Run(input, output Pipe)

type StringContains

type StringContains struct {
	Str string
}

func (StringContains) Run

func (self StringContains) Run(input, output Pipe)

type WaitForCompletion

type WaitForCompletion struct {
}

func (WaitForCompletion) Run

func (w WaitForCompletion) Run(input, output Pipe)

Jump to

Keyboard shortcuts

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