0
点赞
收藏
分享

微信扫一扫

grpc入门2

rpc-gateway使用(同时提供rpc和http接口)

介绍第三方库

https://github.com/grpc-ecosystem/grpc-gateway

grpc入门2_github



在grpc之上加一层代理并转发,转变成protobuf格式来访问grpc服务

安装

go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway

go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger

go get -u github.com/golang/protobuf/protoc-gen-go

安装好后在gopath的bin目录下

grpc入门2_github_02


举报

相关推荐

0 条评论