thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From EY Tsai <ey.t...@comcast.net>
Subject Is it possible to return service from a service function.
Date Mon, 16 Aug 2010 20:57:27 GMT
Hi,

I'm new to Thrift. Is it possible. Or any way around? Something like below

struct Item {
   1: string key,
   2: string value
}

service Store {
    Item get(1: string key),
    Item save(1: string key, 2: Item e),
}

service StoreManager {
    Store getStore(1: String storeName),
    Store createStore(1: String storeName)
}


Thanks.

Mime
View raw message