splitmerge

package
v0.0.0-...-86c6960 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MergeWriter

func MergeWriter(sink io.WriteCloser, parts int, blockSize int) []io.WriteCloser

MergeWriter returns list of WriteCloser-s Then it reads data from each of n=`parts` WriteClosers in blocks of `blockSize` and writes data to `sink` writer. MergeWriter gets ownership over sink and will close it.

func NewChannelReader

func NewChannelReader(in <-chan []byte) io.ReadCloser

func SplitReader

func SplitReader(reader io.Reader, parts int, blockSize int) []io.Reader

Types

This section is empty.

Jump to

Keyboard shortcuts

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