Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateConfig ¶
func WrapReadCloser ¶
func WrapReadCloser(rc io.ReadCloser, bucket *ratelimit.Bucket) io.ReadCloser
Types ¶
type Config ¶
type Config struct { Max int64 // < 0 means no limit, BucketCapacity is irrelevant then BucketCapacity int64 }
func NoLimitConfig ¶
func NoLimitConfig() Config
type Wrapper ¶
type Wrapper interface {
WrapReadCloser(io.ReadCloser) io.ReadCloser
}
func WrapperFromConfig ¶
Click to show internal directories.
Click to hide internal directories.