A general-purpose API gateway for microservices to provide an HTTP endpoint, named Asgard.
The project uses gin as the web
framework for the public access gateway layer.
The project is divided into the following layers:
- Handler Exposes HTTP endpoints to handle incoming requests and validate and assemble parameters without processing specific business logic.
- Service Business logic layer.
- Remote
RPC
client call package.
Typically, you can follow these steps to use it:
- In the image, you can enter
asgard-gateway
, then:- Run
sh kitex.sh
to generatekitex_gen
- Run
pre-commit install
(execute once) -> coding ->git commit -m 'tinyfix'
...
- Run