mirror of
https://github.com/unclechu/gRPC-haskell.git
synced 2024-12-29 13:19:45 +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;
|
||
|
}
|