Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xnzone/protoc-gen-go_api
https://github.com/xnzone/protoc-gen-go_api
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/xnzone/protoc-gen-go_api
- Owner: xnzone
- License: apache-2.0
- Created: 2022-12-04T11:59:04.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2022-12-06T08:25:23.000Z (about 2 years ago)
- Last Synced: 2024-06-21T19:54:39.079Z (7 months ago)
- Language: Go
- Size: 55.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gapi
go http api service and client for protobuf
gapi是一个通用的go-http使用protobuf的解决方案,可以兼容[go-gin](https://github.com/gin-gonic/gin)和其他框架,也支持自定义的客户端请求
具体使用,可以参考[gapi-demo](https://github.com/xnzone/gapi-demo)
服务端只需要实现router,就可以无缝对接。如果要使用client,则实现client就可以无缝对接了
同时可以区分http的请求参数,header,uri,query和body