transfer.sh/vendor/github.com/VojtechVitek/ratelimit
2017-03-28 17:26:32 +02:00
..
examples Add ratelimit package 2017-03-28 17:26:32 +02:00
memory Add ratelimit package 2017-03-28 17:26:32 +02:00
redis Add ratelimit package 2017-03-28 17:26:32 +02:00
.travis.yml Add ratelimit package 2017-03-28 17:26:32 +02:00
download.go Add ratelimit package 2017-03-28 17:26:32 +02:00
download_test.go Add ratelimit package 2017-03-28 17:26:32 +02:00
ip.go Add ratelimit package 2017-03-28 17:26:32 +02:00
LICENSE Add ratelimit package 2017-03-28 17:26:32 +02:00
ratelimit.go Add ratelimit package 2017-03-28 17:26:32 +02:00
README.md Add ratelimit package 2017-03-28 17:26:32 +02:00
request.go Add ratelimit package 2017-03-28 17:26:32 +02:00
request_test.go Add ratelimit package 2017-03-28 17:26:32 +02:00
throttle.go Add ratelimit package 2017-03-28 17:26:32 +02:00
throttle_test.go Add ratelimit package 2017-03-28 17:26:32 +02:00

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.