io_throttler

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: May 24, 2016 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultIOThrottlingBandwidth = iothrottler.BytesPerSecond * 1024 * 1024 * 10 //TODO: What is a good copy throttle speed?

DefaultIOThrottlingBandwidth is the global default IO throttling bandwidth (in bytes-per-second)

Functions

func CopyThrottled

func CopyThrottled(bandwidth iothrottler.Bandwidth, dest io.Writer, src io.Reader) (written int64, returnErr error)

CopyThrottled does a normal io.Copy but with throttling

Types

This section is empty.

Jump to

Keyboard shortcuts

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