文章标题
来源:互联网 发布:网络拔草是什么意思啊 编辑:程序博客网 时间:2024/06/08 01:03
thrift
BaseTypes
- bool
- byte
- i16
- i32
- i64
- double
- binary
* string
Containers
- list
- set
* map
Namespace
namespace java com.example.project
Includes
include "tweet.thrift"...struct TweetSearchResult { 1: list<tweet.Tweet> tweets;}
Constants
const i32 INT_CONST = 1234;const map<string, string> MAP_CONST = {"hello":"world"}
Defining Structs
struct Location { 1:required double latitude; 2:required double longtitude;}struct Tweet { 1:required i32 userId; 2:required string username; 3:required string text; 4:optional Location location; 16:optional string language = "english";}
Defining Service
Service Twitter { void ping(), bool postTweet(1:Tweet tweet) throws (1:TwitterUnavailable unavailable), TweetSearchResult searchTweets(1:string query); oneway void zip()}
阅读全文
0 0
- 文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题 文章标题 文章标题 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 自然对数底数e的由来
- Ubuntu 14.04 制作本地源镜像 搭建 apt-get 服务器
- extjs添加页面时间保存不了
- 数据库原理 、 SQL(DDL、DML)
- VS2008项目属性的部分解释
- 文章标题
- JavaScript全栈开发-工具篇
- mysqlbinlog: unknown variable 'default-character-set=utf8'
- Codeforces 828 C. String Reconstruction 思维
- POJ 3184 Finicky Grazers 笔记
- 备忘录----------下拉框选择触发事件
- C++中两个线程用同一个list进行数据传递
- Windows 编译caffe常见错误问题汇总
- meta 头部信息