Documentation ¶
Index ¶
- Variables
- func Register(name string, builder StepBuilder) error
- func StepMakeChan(o plugin.Options) chan Data
- func StepSend(ctx context.Context, o plugin.Options, out chan Data, data Data) error
- func Unregister(name string) error
- type Data
- type MarshallableStep
- type NamedStep
- type Pipeline
- func (p *Pipeline) AddOrFindStep(step Step) (int, error)
- func (p *Pipeline) AddStep(step Step) (int, error)
- func (p *Pipeline) ConnectSteps(steps ...Step) (<-chan Data, error)
- func (p *Pipeline) ConnectStepsById(ids ...int) (<-chan Data, error)
- func (p *Pipeline) FindStep(step Step) (int, error)
- func (p *Pipeline) GetStep(id int) (Step, bool)
- func (p *Pipeline) Reset() ([]<-chan Data, error)
- func (p *Pipeline) Run(ctx context.Context)
- type Step
- type StepBuilder
- type StepConfigurator
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNilOutput = errors.New("source step output is nil") ErrTooFew = errors.New("too few steps") )
View Source
var ErrDrop = errors.New("dropped data")
View Source
var ErrEOS = errors.New("end of stream")
Functions ¶
func Register ¶
func Register(name string, builder StepBuilder) error
func StepMakeChan ¶
func Unregister ¶
Types ¶
type MarshallableStep ¶
type Pipeline ¶
type Pipeline struct {
// contains filtered or unexported fields
}
func (*Pipeline) ConnectStepsById ¶
type StepConfigurator ¶
Click to show internal directories.
Click to hide internal directories.