go - TBinary 协议可以解码 thrifter 编码的数据吗?
问题描述
目前我有许多由 thrift 生成的 go 结构,我想将真实数据填充到它们并发送到服务器。服务器将使用 TBinaryProtocol 来解码数据。
节俭者:https ://github.com/thrift-iterator/go TBinaryProtocol https://people.apache.org/~thejas/thrift-0.9/javadoc/org/apache/thrift/protocol/TBinaryProtocol.Factory.html
客户端:数据 := thrifter.Marshal(interface{}) -> send() ->
服务器:decode(factory.getProtocol(buf))
解决方案
推荐阅读
- c++ - Google Cloud Cpp 找不到内部 .h 文件
- python - 如何使用基于类的视图从不同的应用程序在 django 中呈现模板?
- python-3.x - 对重复项进行分组,允许 NaN 等于任何值
- c# - 使用 Slider 设置变量值,无需先触摸 Slider
- reactjs - Tableau API 未捕获(承诺中)异常 $ {_message:“参数不能为空或为空:fieldName”
- ios - 在敲击键盘键后触发keyboardDidShowNotification 和keyboardWillShowNotification
- reactjs - 在没有上下文的功能组件中向上传递状态
- c# - 具有隐式转换的重载解决方案
- r - R - 每日回报的 adfTest
- ios - SwiftUI 无法在 Bundle 中找到图像,但图像在正确的路径中?