7
Grpc 流式传输Stream Demo
source link: https://studygolang.com/articles/36267
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Grpc 流式传输Stream Demo
rushui · 4天之前 · 653 次点击 · 预计阅读时间 1 分钟 · 大约8小时之前 开始浏览grpc 流式传输 demo 服务端流、客户端流、双向流
brew install protobuf
protoc --version #最新版本
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
export PATH=$PATH:$GOPATH/bin
下载demo
git clone https://github.com/grpc-example/stream.git
cd stream
go mod tidy
编译.proto文件命令
make api
go mod tidy
run server
go run server.go
run client
go run client.go
有疑问加站长微信联系(非本文作者))
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK