Versions in this module Expand all Collapse all v1 v1.0.0 Jun 5, 2023 Changes in this version + const Inf + type Limit rate.Limit + func Every(interval time.Duration) Limit + type Limiter struct + func New(limit Limit) *Limiter + func (lim *Limiter) Burst() int + func (lim *Limiter) Limit() Limit + func (lim *Limiter) Reader(r io.Reader) io.Reader + func (lim *Limiter) ReaderWithContext(ctx context.Context, r io.Reader) io.Reader + func (lim *Limiter) SetBurst(newBurst int) + func (lim *Limiter) SetLimit(newLimit Limit) + func (lim *Limiter) Writer(w io.Writer) io.Writer + func (lim *Limiter) WriterWithContext(ctx context.Context, w io.Writer) io.Writer