grpc-gateway--支持grpc和restful
The grpc-gateway is a plugin of the Google protocol buffers compiler protoc . It reads protobuf service definitions and generates a reverse-proxy server which 'translates a RESTful HTTP API into gRPC. This server is generated according to the google.api.http annotations in your service definitions. grpc-gateway 是protoc的一个插件。它读取gRPC服务定义,并生成一个反向代理服务器,将RESTful JSON API转换为gRPC。此服务器是根据gRPC定义中的自定义选项生成的。 参考: 1. https://github.com/grpc-ecosystem/grpc-gateway https://grpc-ecosystem.github.io/grpc-gateway/ 2. grpc-gateway应用 煎鱼 grpc + grpc gateway 3. OpenNESS eaa.proto生成swagger yaml 4. gRPC 调试工具 gRPC