文件名称:grpc-http-proxy:grpc http(restful)协议代理或网关
文件大小:7.57MB
文件格式:ZIP
更新时间:2024-05-06 01:19:45
Go
Grpc-Http-Proxy 将http restful接口访问转换成grpc访问。 相关仓库 https://github.com/generalzgd/grpc-http-proxy https://github.com/generalzgd/protoc-gen-grpc-httpgw https://github.com/generalzgd/grpc-tcp-gateway-proto Proto文件生成 protoc -Iiproto --go_out=plugins=grpc:./iproto ./iproto/backendsvr.proto protoc -Iiproto --grpc-tcpgw_out=logtostderr=true:./iproto ./iproto/httpgate.proto protoc -Iiproto --grpc-httpgw_out
【文件预览】:
grpc-http-proxy-master
----.gitignore(49B)
----main.go(2KB)
----README.md(1KB)
----grpcproxy(15.08MB)
----go.mod(2KB)
----define()
--------data.go(4KB)
----mgr()
--------manager.go(4KB)
----config()
--------config.go(1KB)
--------config_dev.yml(359B)
----iproto()
--------httpgate.proto(902B)
--------backendsvr.pb.go(13KB)
--------google()
--------httpgate.pb.httpgw.go(7KB)
--------httpgate.pb.tcpgw.go(6KB)
--------backendsvr.proto(542B)
----go.sum(27KB)
----uml()
--------usecase1.puml(713B)
--------usecase1.png(129KB)
--------usecase2.png(108KB)
--------usecase2.puml(642B)