You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Remco 7bf499b092 Add ratelimit package пре 7 година
..
examples Add ratelimit package пре 7 година
memory Add ratelimit package пре 7 година
redis Add ratelimit package пре 7 година
.travis.yml Add ratelimit package пре 7 година
LICENSE Add ratelimit package пре 7 година
README.md Add ratelimit package пре 7 година
download.go Add ratelimit package пре 7 година
download_test.go Add ratelimit package пре 7 година
ip.go Add ratelimit package пре 7 година
ratelimit.go Add ratelimit package пре 7 година
request.go Add ratelimit package пре 7 година
request_test.go Add ratelimit package пре 7 година
throttle.go Add ratelimit package пре 7 година
throttle_test.go Add ratelimit package пре 7 година

README.md

Rate Limit HTTP middleware

GoDoc Widget Travis Widget

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.