An open API service indexing awesome lists of open source software.

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: 5 months ago
JSON representation

golang ratelimiter without using channels or timers

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.