Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 401 Bytes

README.md

File metadata and controls

11 lines (7 loc) · 401 Bytes

thrift-rpc

learn how to set up rpc service by thrift between different language

thrift生成代码

  • thrift -r --gen php test.thrift #生成的是客户端的代码

  • thrift -r --gen php:server test.thrift #生成PHP服务端接口代码有所不一样

而对于golang而言

  • 并 不支持 thrift -r --gen go:server *.thrift 语法 ,只有thrift -r --gen go *.thrift