摘要: 参考:gRPC 拦截器 -- Golang - 知乎 (zhihu.com) 阅读全文
posted @ 2022-04-26 19:38 ☞@_@ 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 参考:(29条消息) golang grpc中metadata的使用_sweey_lff的博客-CSDN博客_golang grpc metadata 阅读全文
posted @ 2022-04-26 19:37 ☞@_@ 阅读(57) 评论(0) 推荐(0) 编辑
摘要: 参考:(29条消息) protobuf基本用法详解_langzi989的博客-CSDN博客_protobuf使用详解 参考:Go Protobuf 简明教程 | 快速入门 | 极客兔兔 (geektutu.com) 阅读全文
posted @ 2022-04-26 16:04 ☞@_@ 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 1、什么是数据流? grpc中的stream,srteam顾名思义就是一种流,可以源源不断的推送数据,很适合传输一些大数据,或者服务端和客户端长时间数据交互,比如客户端可以向服务端订阅一个数据,服务端就可以利用stream,源源不断地推送数据。 底层还原成socket编程。 2、grpc的四种数据流 阅读全文
posted @ 2022-04-26 15:04 ☞@_@ 阅读(615) 评论(0) 推荐(0) 编辑
摘要: 1、下载protoc 地址:https://github.com/google/protobuf/releases window: 下载: protoc-3.3.0-win32.zip 解压,把bin目录下的protoc.exe复制到GOPATH/bin下,GOPATH/bin加入环境变量。 当然也 阅读全文
posted @ 2022-04-26 10:33 ☞@_@ 阅读(46) 评论(0) 推荐(0) 编辑