Sign inSign up

ooclab/ga

By ooclab

•Updated almost 3 years ago

A lightweight middleware for service-oriented architecture

Image
0

2.7K

ooclab/ga repository overview

⁠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:

  • [x] hello⁠ : for example
  • [x] jwt⁠ : decode JWT (from Authorization in HTTP Request Header), and set X-User-Id header by user id
  • [x] addauth⁠ : manage access_token and refresh_token , add JWT with Authorization in HTTP Request Header auto
  • [x] openapi⁠ : authorize permissions and validate request args with OpenAPI 2.0 Spec Document of the backend service
  • [x] debug⁠ : print http request data when debug is enable
  • [ ] openapi-response : check the response for testing

⁠目录

ga 架构示例:

⁠进展
⁠已完成
  • [x] 支持启动任意数量的 forwarder ,每个 forwarder 可以自由搭配任意数量的 middlewares
  • [x] 支持 golang plugin 方式写自定义的 middleware 。 可以查看示例: hello⁠
⁠TODO

⁠Contact

Tag summary

Content type

Image

Digest

Size

73.3 MB

Last updated

almost 8 years ago

docker pull ooclab/ga