首页 > 解决方案 > 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))

标签: gothriftthrift-protocol

解决方案


推荐阅读