mirror of
https://github.com/facebook/rocksdb.git
synced 2024-12-04 02:02:41 +00:00
80c663882a
Summary: First draft. Unit tests pass. Test Plan: unit tests attached Reviewers: heyongqiang Reviewed By: heyongqiang Differential Revision: https://reviews.facebook.net/D3969
42 lines
848 B
Thrift
42 lines
848 B
Thrift
#!/usr/local/bin/thrift -cpp
|
|
|
|
include "common/fb303/if/fb303.thrift"
|
|
|
|
namespace cpp apache.thrift.async
|
|
|
|
struct StructRequest {
|
|
1:i32 i32Val,
|
|
2:i64 i64Val,
|
|
3:double doubleVal,
|
|
4:string stringVal,
|
|
}
|
|
|
|
struct StructResponse {
|
|
1:StructRequest request,
|
|
2:i32 errorCode
|
|
3:string answerString,
|
|
}
|
|
|
|
service AggregatorTest extends fb303.FacebookService {
|
|
StructResponse sendStructRecvStruct(1:StructRequest request),
|
|
oneway void sendStructNoRecv(1:StructRequest request),
|
|
StructResponse sendMultiParamsRecvStruct(
|
|
1:i32 i32Val,
|
|
2:i64 i64Val,
|
|
3:double doubleVal,
|
|
4:string stringVal,
|
|
5:StructRequest structVal,
|
|
),
|
|
oneway void sendMultiParamsNoRecv(
|
|
1:i32 i32Val,
|
|
2:i64 i64Val,
|
|
3:double doubleVal,
|
|
4:string stringVal,
|
|
5:StructRequest structVal,
|
|
),
|
|
StructResponse noSendRecvStruct(),
|
|
oneway void noSendNoRecv(),
|
|
}
|
|
|
|
|