stream

package
v0.1.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StreamOperator

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

StreamOperator is an operator takes streamed items of type map, array, or slice and unpacks and emits each item individually downstream.

func New

func New() *StreamOperator

New creates a *StreamOperator value

func (*StreamOperator) Exec

func (r *StreamOperator) Exec(ctx context.Context) (err error)

Exec is the execution starting point for the executor node.

func (*StreamOperator) GetOutput

func (r *StreamOperator) GetOutput() <-chan interface{}

GetOutput returns the output channel of the executer node

func (*StreamOperator) SetInput

func (r *StreamOperator) SetInput(in <-chan interface{})

SetInput sets the input channel for the executor node

Jump to

Keyboard shortcuts

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