valuestream

package
v0.0.0-...-f53b987 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Merge

func Merge(streams []*oproto.ValueStream) <-chan *oproto.Value

Merge merges multiple ValueStreams, returning a channel producing sorted Values.

func MergeBy

func MergeBy(streams []*oproto.ValueStream, by string) <-chan []*oproto.ValueStream

func ToChan

func ToChan(input *oproto.ValueStream) <-chan *oproto.Value

FromChan takes a ValueStream and writes all the values individually to a new channel.

func ToStream

func ToStream(input <-chan *oproto.Value, output *oproto.ValueStream) *oproto.ValueStream

ToStream takes a channel of Values and appends each one to the supplied ValueStream.

Types

type By

type By func(p1, p2 *oproto.ValueStream) bool

func (By) Sort

func (by By) Sort(values []*oproto.ValueStream)

Jump to

Keyboard shortcuts

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