pipeline

package
v0.0.0-...-7232936 Latest Latest
Warning

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

Go to latest
Published: May 25, 2017 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pipeline

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

Pipeline contains an array of worker pools of components.

func NewPipeline

func NewPipeline(factories []component.Factory) *Pipeline

NewPipeline creates a new Pipeline. It uses factories to spawn workers and push them to the worker pool.

The output channel for a pool is the input channel for the next pool. The input channel for the first component is nil. The first component Handle function won't be called so it should not be implemented.

func (*Pipeline) Close

func (p *Pipeline) Close()

Close broadcast a terminate signal to all pools, wait for all gorutines to finish and release associated resources

Jump to

Keyboard shortcuts

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