go-zero/example/rpc/remote/stream/greet.proto
2020-07-26 17:09:05 +08:00

15 lines
213 B
Protocol Buffer

syntax = "proto3";
package stream;
message StreamReq {
string name = 1;
}
message StreamResp {
string greet = 1;
}
service StreamGreeter {
rpc greet(stream StreamReq) returns (stream StreamResp);
}