Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BandwidthMeter ¶
type BandwidthMeter struct {
// contains filtered or unexported fields
}
BandwidthMeter counts the number of bytes written to it over time.
func (*BandwidthMeter) Bandwidth ¶
func (br *BandwidthMeter) Bandwidth() (bytesPerSec float64)
Bandwidth returns the current bandwidth
func (*BandwidthMeter) BytesRead ¶
func (br *BandwidthMeter) BytesRead() (bytes uint64)
BytesRead returns the number of bytes read by this BandwidthMeter
func (*BandwidthMeter) Duration ¶
func (br *BandwidthMeter) Duration() (duration time.Duration)
Duration returns the current duration
Click to show internal directories.
Click to hide internal directories.