gatekeeper is an api gateway who controls access to server
provides the following features
- RateLimit (Leaky bucket)
- cache (redis)
setting config.yaml & start redis server
$ redis-server
$ go run proxy.go
or
$ go build && ./gatekeeper
access to http://localhost:8000/proxy/${origin_path}
health check entry point. return status code 200 & body "OK"
prometheus entry point.
proxy entry point.
return proxied response body & header.