Commit 08f1b22a authored by tammam.alsoleman's avatar tammam.alsoleman

create multiplication service with node.js

parent 09b45e39
syntax = "proto3";
package calculator;
option go_package = "./generated";
option java_package = "com.calculator.multiplication.generated";
option java_multiple_files = true;
service Calculator {
rpc Add (Numbers) returns (Result);
rpc Multiply (Numbers) returns (Result);
rpc GetOperationHistory (Empty) returns (stream OperationHistory);
}
message Numbers {
int32 a = 1;
int32 b = 2;
}
message Result {
int32 value = 1;
string operation = 2;
}
message OperationHistory {
string service_name = 1;
repeated Operation operations = 2;
}
message Operation {
string type = 1;
int32 a = 2;
int32 b = 3;
int32 result = 4;
string timestamp = 5;
}
message Empty {}
\ No newline at end of file
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