摘要: 1、kitex的支持的编解码协议 (1)目前,Kitex 支持了 thrift 和 protobuf 两种编解码协议。 (2)thrift编解码 生成代码时可以不指定 thrift 协议,默认就是 thrift。 //生成客户端代码 kitex -type thrift ${service_name 阅读全文
posted @ 2022-10-26 15:07 ☞@_@ 阅读(84) 评论(0) 推荐(0) 编辑
摘要: 1、安装依赖 安装 kitex和thriftgo go install github.com/cloudwego/kitex/tool/cmd/kitex@latest​ ​go install github.com/cloudwego/thriftgo@latest 2、相关概念 (1)Kitex 阅读全文
posted @ 2022-10-26 14:22 ☞@_@ 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 1、linux系统安装kitex工具还是报错command not found // 找到etc/profile文件,输入如下(path是kitex的安装目录) export PATH=$PATH:/root/goCode/bin // 更新配置 source /etc/profile 参考:(36 阅读全文
posted @ 2022-10-26 10:41 ☞@_@ 阅读(218) 评论(0) 推荐(0) 编辑