pipleline

package
v0.0.0-...-9dec8c7 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArraySource

func ArraySource(a ...int) <-chan int

func InMemSort

func InMemSort(in <-chan int) <-chan int

in 是节点的一个输入 return 的 channel 是一个输出 return 是相对于使用者的来说 使用的人只能用它去收东西 对于 InMemSort 只能发东西 in <-chan int::只进不出的 channel 返回的是 <-chan int:只出不进的 channel

func Init

func Init()

func Merge

func Merge(in1, in2 <-chan int) <-chan int

func MergeN

func MergeN(inputs ...<-chan int) <-chan int

N 个节点反复两两归并 注意:这里只有两路

func NetworkSink

func NetworkSink(addr string, in <-chan int)

func NetworkSource

func NetworkSource(addr string) <-chan int

func RandomSource

func RandomSource(count int) <-chan int

func ReaderSource

func ReaderSource(reader io.Reader, chunkSize int) <-chan int

func WriterSink

func WriterSink(writer io.Writer, in <-chan int)

Types

This section is empty.

Jump to

Keyboard shortcuts

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