mirror of
https://github.com/unclechu/gRPC-haskell.git
synced 2024-11-14 23:29:42 +01:00
18 lines
248 B
Protocol Buffer
18 lines
248 B
Protocol Buffer
|
syntax = "proto3";
|
||
|
package arithmetic;
|
||
|
|
||
|
service Arithmetic {
|
||
|
rpc Add (TwoInts) returns (OneInt) {}
|
||
|
|
||
|
rpc RunningSum (stream OneInt) returns (OneInt) {}
|
||
|
}
|
||
|
|
||
|
message TwoInts {
|
||
|
int32 x = 1;
|
||
|
int32 y = 2;
|
||
|
}
|
||
|
|
||
|
message OneInt {
|
||
|
int32 result = 1;
|
||
|
}
|