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.
Click to show internal directories.
Click to hide internal directories.