Releases: rcdmk/go-ratelimiter
Releases · rcdmk/go-ratelimiter
0.2.0
0.1.0
Added
ratelimiter
package brings a generic rate limiter implementation that can be used as base for any use case.ratelimitermiddleware.StdLib
implements the rate limiter for the standard libhttp
package.ratelimitermiddleware.StdLib
adds standardRateLimit-Limit
,RateLimit-Remaining
,RateLimit-Reset
andRetry-After
headers to the response when blocking a request.cache.GetterSetter
interface provices a mean for specifying a cache implementation for the rate limiter.cache.InMemory
is a default implementation for caching that supports TTL and uses standard maps as backing storage. This implementation is used by default if no implementation is provided.
Full Changelog: https://github.com/rcdmk/go-ratelimiter/commits/v0.1.0