Commit d2009528 authored by drnull03's avatar drnull03

Forget to update the gloabal proto opps

parent 3178f290
No preview for this file type
......@@ -16,5 +16,17 @@ message AddResponse {
// The AddService definition
service AddService {
rpc Add (AddRequest) returns (AddResponse);
rpc StreamLogs (LogRequest) returns (stream LogEntry);
}
message LogRequest {
int32 limit = 1; // optional: how many records to fetch
}
message LogEntry {
double a = 1;
double b = 2;
double result = 3;
string timestamp = 4;
}
......@@ -13,4 +13,16 @@ message MultiplyResponse {
service MultiplyService {
rpc Multiply (MultiplyRequest) returns (MultiplyResponse);
rpc StreamLogs (LogRequest) returns (stream LogEntry);
}
message LogRequest {
int32 limit = 1; // optional, number of logs
}
message LogEntry {
double a = 1;
double b = 2;
double result = 3;
string timestamp = 4;
}
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment