To generate grpc stream, fix issue #616 (#815)

Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
This commit is contained in:
anqiansong
2021-07-16 22:54:07 +08:00
committed by GitHub
parent 598fda0c97
commit db87fd3239
6 changed files with 123 additions and 46 deletions

View File

@@ -0,0 +1,16 @@
syntax = "proto3";
package test;
message Req{
string input = 1;
}
message Reply{
string output = 1;
}
service TestService{
rpc ServerStream (Req) returns (stream Reply);
rpc ClientStream (stream Req) returns (Reply);
rpc Stream (stream Req) returns (stream Reply);
}