You need to sign in or sign up before continuing.
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 { ...@@ -16,5 +16,17 @@ message AddResponse {
// The AddService definition // The AddService definition
service AddService { service AddService {
rpc Add (AddRequest) returns (AddResponse); 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 { ...@@ -13,4 +13,16 @@ message MultiplyResponse {
service MultiplyService { service MultiplyService {
rpc Multiply (MultiplyRequest) returns (MultiplyResponse); 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