Created
July 23, 2016 12:29
-
-
Save muuki88/d47ce7ba624fe78a4a39ed44583e6e7a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace * net.gutefrage.temperature.thrift | |
/** | |
* temperature in celisus and timestamp in UTC milliseconds | |
*/ | |
struct TemperatureDatum { | |
1: i32 celsius, | |
2: i64 timestamp | |
} | |
service TemperatureService { | |
/** store a datum */ | |
void add(1: TemperatureDatum datum); | |
/** return the mean temperature */ | |
double mean(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment