Guardian Angel
Guardian Angel is a lightweight middleware for service-oriented architecture.
What is the service-oriented here ?
big services: export a http(s) apismall services- microservices / nanoservices
- serverless / FaaS
We don't want to argument the term, we just want to do right job. :-)
Current Support:
- custom your middleware with golang plugin ( third-party-middleware )
Current Middlewares:
- hello : for example
- jwt : decode JWT (from
Authorizationin HTTP Request Header), and setX-User-Idheader by user id - addauth : manage
access_tokenandrefresh_token, add JWT withAuthorizationin HTTP Request Header auto - openapi : authorize permissions and validate request args with OpenAPI 2.0 Spec Document of the backend service
- debug : print http request data when debug is enable
- openapi-response : check the response for testing
目录
ga 架构示例:
进展
已完成
- 支持启动任意数量的 forwarder ,每个 forwarder 可以自由搭配任意数量的 middlewares
- 支持 golang plugin 方式写自定义的 middleware 。 可以查看示例: hello
