mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2024-12-11 13:20:19 +01:00
.. | ||
examples | ||
memory | ||
redis | ||
.travis.yml | ||
download.go | ||
download_test.go | ||
ip.go | ||
LICENSE | ||
ratelimit.go | ||
README.md | ||
request.go | ||
request_test.go | ||
throttle.go | ||
throttle_test.go |
Rate Limit HTTP middleware
Golang package for rate limiting HTTP endpoints based on context and request headers.
Under development
Goals
- Simple but powerful API
- Token Bucket algorithm (rate + burst)
- Storage independent (Redis, In-Memory or any other K/V store)
License
Copyright (c) 2016 Vojtech Vitek
Licensed under the MIT License.