package
0.9.0
Repository: https://github.com/opencoff/go-ratelimit.git
Documentation: pkg.go.dev

# Functions

Create new limiter that limits to 'rate' every 'per' seconds.
Create new limiter that limits to 'rate' every 'per' seconds with burst of 'b' tokens in the same time period.
Create new limiter with a custom time keeper that limits to 'rate' every 'per' seconds with burst of 'b' tokens in the same time period.
Create a new per-source rate limiter to limit each IP (host) to 'ratex' every 'perx' seconds.
Make a new rate limiter using a custom timekeeper.

# Structs

Manages a map of source IP:port to underlying ratelimiter Each entry is in a LRU Cache.
RateLimiter represents a token-bucket rate limiter.

# Interfaces

Clock provides an interface to timekeeping.