teleivo / go-rate-limiter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduction

Light weight http rate limiting proxy.

The proxy will perform rate limiting based on the rules defined in the configuration file. If no rule match the request, it'll proxy transparently.

Launch in development mode

make dev

HTTP Request

Perform a http request using HTTPie

http :8080

Trigger rate limiting

seq 10 | xargs -P 4 -I '{}' http post :8080/health

Credits

TODO

  • Comment exported types and functions
  • Write tests

About


Languages

Language:Go 90.0%Language:Makefile 5.5%Language:Dockerfile 4.5%