Files
protoc-gen-go-micro/example/stream_test.proto

17 lines
501 B
Protocol Buffer

syntax = "proto3";
package example;
option go_package = "go.unistack.org/protoc-gen-go-micro/v4/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; }