service Collectd {
// Query a list of values available from collectd's value cache.
- rpc QueryValues(QueryValuesRequest) returns (QueryValuesReply);
+ rpc QueryValues(QueryValuesRequest) returns (QueryValuesResponse);
}
service Dispatch {
// DispatchValues sends a stream of ValueLists to the server.
- rpc DispatchValues(stream DispatchValuesRequest) returns (DispatchValuesReply);
+ rpc DispatchValues(stream DispatchValuesRequest) returns (DispatchValuesResponse);
}
// The arguments to DispatchValues.
}
// The response from DispatchValues.
-message DispatchValuesReply {
+message DispatchValuesResponse {
}
// The arguments to QueryValues.
}
// The response from QueryValues.
-message QueryValuesReply {
+message QueryValuesResponse {
repeated collectd.types.ValueList value_lists = 1;
}
using collectd::Dispatch;
using collectd::DispatchValuesRequest;
-using collectd::DispatchValuesReply;
+using collectd::DispatchValuesResponse;
using collectd::QueryValuesRequest;
-using collectd::QueryValuesReply;
+using collectd::QueryValuesResponse;
using google::protobuf::util::TimeUtil;
/*
* request call-backs and call objects
*/
-static grpc::Status DispatchValue(grpc::ServerContext *ctx, DispatchValuesRequest request, DispatchValuesReply *reply)
+static grpc::Status DispatchValue(grpc::ServerContext *ctx, DispatchValuesRequest request, DispatchValuesResponse *reply)
{
value_list_t vl = VALUE_LIST_INIT;
auto status = unmarshal_value_list(request.value_list(), &vl);
return status;
} /* grpc::Status DispatchValue */
-static grpc::Status QueryValues(grpc::ServerContext *ctx, QueryValuesRequest req, QueryValuesReply *res)
+static grpc::Status QueryValues(grpc::ServerContext *ctx, QueryValuesRequest req, QueryValuesResponse *res)
{
uc_iter_t *iter;
char *name = NULL;
grpc::ServerCompletionQueue* cq_;
Collectd::AsyncService* service_;
QueryValuesRequest request_;
- QueryValuesReply response_;
- grpc::ServerAsyncResponseWriter<QueryValuesReply> writer_;
+ QueryValuesResponse response_;
+ grpc::ServerAsyncResponseWriter<QueryValuesResponse> writer_;
};
/*
Dispatch::AsyncService* service_;
DispatchValuesRequest request_;
- DispatchValuesReply response_;
- grpc::ServerAsyncReader<DispatchValuesReply, DispatchValuesRequest> reader_;
+ DispatchValuesResponse response_;
+ grpc::ServerAsyncReader<DispatchValuesResponse, DispatchValuesRequest> reader_;
};
/*