Skip to content

Instantly share code, notes, and snippets.

@muuki88
Created July 23, 2016 12:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save muuki88/d47ce7ba624fe78a4a39ed44583e6e7a to your computer and use it in GitHub Desktop.
Save muuki88/d47ce7ba624fe78a4a39ed44583e6e7a to your computer and use it in GitHub Desktop.
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