-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathecho.proto
26 lines (23 loc) · 989 Bytes
/
echo.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
syntax = "proto3";
package echo;
import "github.com/aperturerobotics/starpc/rpcstream/rpcstream.proto";
import "google/protobuf/empty.proto";
// Echoer service returns the given message.
service Echoer {
// Echo returns the given message.
rpc Echo(EchoMsg) returns (EchoMsg);
// EchoServerStream is an example of a server -> client one-way stream.
rpc EchoServerStream(EchoMsg) returns (stream EchoMsg);
// EchoClientStream is an example of client->server one-way stream.
rpc EchoClientStream(stream EchoMsg) returns (EchoMsg);
// EchoBidiStream is an example of a two-way stream.
rpc EchoBidiStream(stream EchoMsg) returns (stream EchoMsg);
// RpcStream opens a nested rpc call stream.
rpc RpcStream(stream .rpcstream.RpcStreamPacket) returns (stream .rpcstream.RpcStreamPacket);
// DoNothing does nothing.
rpc DoNothing(.google.protobuf.Empty) returns (.google.protobuf.Empty);
}
// EchoMsg is the message body for Echo.
message EchoMsg {
string body = 1;
}