executor

package
v0.0.0-...-c2e7105 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pipeline

type Pipeline struct {
	CallStack list.List
}

Pipeline is a type alias for a lazy list of pipeline functions

func NewPipeline

func NewPipeline() Pipeline

NewPipeline creats a new Pipeline with an empty call stack

func (Pipeline) AndThen

func (p Pipeline) AndThen(f func(interface{}) monad.Monad) Pipeline

AndThen pushes a function onto the pipeline call stack

func (Pipeline) Connect

func (p Pipeline) Connect(end Pipeline) Pipeline

Connect adds a pipeline to the end of the current pipeline. E.g. {a,b,c}.Connect({d,e,f}) = {a,b,c,d,e.f}

func (Pipeline) Exec

func (p Pipeline) Exec(zeroValue interface{}) either.EitherM

Exec executes the pipeline

func (Pipeline) LogAndThen

func (p Pipeline) LogAndThen(f func(interface{}) monad.Monad, log func(interface{})) Pipeline

LogAndThen pushes a function onto the pipeline call stack

Jump to

Keyboard shortcuts

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