echo.thrift 297 Bytes
Newer Older
1 2 3 4

namespace cpp example

struct EchoRequest {
5 6 7 8 9 10
    1: optional string data;
    2: optional i32 need_by_proxy;
}

struct ProxyRequest {
    2: optional i32 need_by_proxy;
11 12 13
}

struct EchoResponse {
14
    1: required string data;
15 16 17
}

service EchoService {
18
    EchoResponse Echo(1:EchoRequest request);
19 20
}