pipeline

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2021 License: NCSA Imports: 5 Imported by: 4

README

pipeline Build Status

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts ...Option) *pipeline

Types

type Option

type Option func(*Options)

func ChannelBuffer

func ChannelBuffer(c int) Option

func Context

func Context(ctx context.Context) Option

type Options

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

func NewOptions

func NewOptions(opts ...Option) *Options

func (*Options) ChannelBuffer

func (o *Options) ChannelBuffer() int

func (*Options) Context

func (o *Options) Context() context.Context

type Step

type Step interface {
	Info() string
	Run(ctx context.Context, in <-chan interface{}, out chan interface{}, opts ...Option)
	io.Closer
}

type StepFunction

type StepFunction func(ctx context.Context, in interface{}, opts *Options) interface{}

func (StepFunction) Close

func (p StepFunction) Close() error

func (StepFunction) Info

func (p StepFunction) Info() string

func (StepFunction) Run

func (p StepFunction) Run(ctx context.Context, in <-chan interface{}, out chan interface{}, opts ...Option)

Jump to

Keyboard shortcuts

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