# README
Janus-gateway
Gateway service based on grpc-ecosystem/grpc-gateway. This helps you provide your APIs in both gRPC and RESTful style at the same time.
当我第一次使用gRPC就深深的爱上了她, 她在跨平台、跨语言、面向移动和HTTP/2设计上有着天然的优势, 我更喜欢的是她定义API的方式. 了解更多gRPC信息请查看英文官方文档 、 中文官方文档
grpc-gateway 的出现更能引起开发者对使用gRPC的兴趣, 她可以帮你在原有gRPC服务的基础上做少量的改动, 便可以将原gRPC服务同时提供RESTful HTTP API, 了解更多RESTful API的例子可以参考GitHub REST API 、Google REST API
janus-gateway 是站在巨人的肩膀上实现的, 增加了更符合企业级应用开发的Features:
- 支持自定义的LoadBalancer
- 既可以部署单机版模式, 也可注册到注册中心实现集群模式
- 支持网关层的Parameter Validation Rules
- 支持自定义的Annotaion
Architecture
Design
Validation Rule
Prepared
janus-gateway 使用GO MOD来管理Dependencies,clone代码之后直接在本地使用bazel构建
Build tools
- Bazel 3.1.0+
- Go 1.13.12+
Clone code
git clone https://github.com/binchencoder/janus-gateway.git
Bazel build gateway
cd janus-gateway
bazel build cmd/gateway/...
Usage
TODO
Run Examples
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Package integrate contains integrate helper functions used by
servers which protoc-gen-grpc-gateway generates.
Package util contains util helper functions used by
servers which protoc-gen-grpc-gateway generates.