Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
cmd
 
 
 
 
 
 
lab
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Guardian Angel

Guardian Angel is a lightweight middleware for service-oriented architecture.

What is the service-oriented here ?

  1. big services : export a http(s) api
  2. small services
    • microservices / nanoservices
    • serverless / FaaS

We don't want to argument the term, we just want to do right job. :-)

Current Support:

Current Middlewares:

  • hello : for example
  • jwt : decode JWT (from Authorization in HTTP Request Header), and set X-User-Id header by user id
  • addauth : manage access_token and refresh_token , add JWT with Authorization in 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

TODO

Contact

You can’t perform that action at this time.