Versions in this module Expand all Collapse all v1 v1.0.1 Nov 22, 2022 v1.0.0 Nov 22, 2022 Changes in this version + func NewThrottledReader(source io.ReadCloser, bitrate int64) io.ReadCloser + type Bitrate struct + func NewBitrate(bitrate T) Bitrate + func (b Bitrate) ByteRate() int64 + func (b Bitrate) DurationToBits(duration time.Duration) int64 + func (b Bitrate) DurationToBytes(duration time.Duration) int64 + func (b Bitrate) IsZero() bool + func (b Bitrate) TransferBits(size int) time.Duration + func (b Bitrate) TransferBytes(size int) time.Duration