Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chunk ¶
type Chunk struct { Handler func(interface{}, func(interface{})) // contains filtered or unexported fields }
func (*Chunk) Initialize ¶
func (chunk *Chunk) Initialize()
type Options ¶
type Options struct { BufferSize int ChunkSize int ChunkCount int Handler func(interface{}, func(interface{})) }
Options represent all of the available options when creating a parallel chunked flow.
type ParallelChunkedFlow ¶
type ParallelChunkedFlow struct {
// contains filtered or unexported fields
}
func NewParallelChunkedFlow ¶
func NewParallelChunkedFlow(options *Options) *ParallelChunkedFlow
NewParallelChunckedFlow creates a new parallel chunked flow
func (*ParallelChunkedFlow) Close ¶ added in v0.0.3
func (pcf *ParallelChunkedFlow) Close()
Close all goroutines
func (*ParallelChunkedFlow) Output ¶
func (pcf *ParallelChunkedFlow) Output() chan interface{}
Output will return a channel for receive proccessed data from flow
func (*ParallelChunkedFlow) Push ¶
func (pcf *ParallelChunkedFlow) Push(data interface{}) error
Push will put data to the flow
Click to show internal directories.
Click to hide internal directories.