stream

package
v0.0.0-...-b79a0d8 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package stream contains chainable functions acting on sizeable data streams such as cores. It can write a local copy, compress, and/or upload to s3.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compress

func Compress(opts *opts.Opts, uncompressed string, nextFn NextFn) (err error)

compress, pass output to 'nextFn' (typically Upload)

func LocalCopy

func LocalCopy(cfg *opts.Opts, localpath string, buf io.Reader) error

try to write buf to a local file, then upload in the unlikely event file creation fails, go straight from the buffer

func Write

func Write(cfg *opts.Opts, suffix string, stream io.Reader) (err error)

Types

type NextFn

type NextFn func(cfg *opts.Opts, name string, stream io.Reader) error

Jump to

Keyboard shortcuts

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