https://github.com/opencoff/go-ratelimit
golang ratelimiter without using channels or timers
https://github.com/opencoff/go-ratelimit
drip-fill golang ratelimiter token-bucket
Last synced: 4 months ago
JSON representation
golang ratelimiter without using channels or timers
- Host: GitHub
- URL: https://github.com/opencoff/go-ratelimit
- Owner: opencoff
- License: gpl-2.0
- Created: 2018-02-28T23:12:02.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2025-06-24T20:07:21.000Z (about 1 year ago)
- Last Synced: 2025-08-14T00:30:50.816Z (11 months ago)
- Topics: drip-fill, golang, ratelimiter, token-bucket
- Language: Go
- Size: 26.4 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-ratelimit - Simple wrapper around `golang.org/x/time/rate`
## What is it?
Token bucket ratelimiter for golang; it wraps the `Limiter` in
`golang.org/x/time/rate`. It implements global *and* per-host rate limits.
It uses an LRU cache to cache the most frequently used per-host limiters.