Files
protoc-gen-go-micro/example/stream_test.proto
Vasiliy Tolstov 586c53efa7 move to v5
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2026-05-13 20:34:18 +03:00

17 lines
501 B
Protocol Buffer

syntax = "proto3";
package example;
option go_package = "go.unistack.org/protoc-gen-go-micro/v5/example/out/go;examplepb";
service StreamExample {
// server-side streaming
rpc ServerStream(StreamReq) returns (stream StreamRsp) {};
// client-side streaming
rpc ClientStream(stream StreamReq) returns (StreamRsp) {};
// bidirectional streaming
rpc BidiStream(stream StreamReq) returns (stream StreamRsp) {};
}
message StreamReq { string name = 1; }
message StreamRsp { string data = 1; }