Documentation ¶
Overview ¶
Package pipe is adapted from https://github.com/rheinardkorf/go-concurrency/blob/master/11_pipeline_complex/pipe/pipe.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pipe ¶
type Pipe struct {
// contains filtered or unexported fields
}
Pipe represents a pipe that contains multiple processes.
func New ¶
func New() *Pipe
New creates a new Pipe and then runs the init() method which sets a cancelable context.
func WithProcesses ¶
WithProcesses creates a new Pipe, but accepts a slice of Processors to run later.
func (*Pipe) AddProcess ¶
AddProcess adds a single process to the processes slice.
func (*Pipe) AddProcesses ¶
AddProcesses adds a multiple processes to the processes slice.
Click to show internal directories.
Click to hide internal directories.