feat(goctl/rpc): support external proto imports with cross-package ty… (#5472)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
kesonan
2026-03-22 12:01:20 +08:00
committed by GitHub
parent c12c82b2f6
commit 004995f06a
93 changed files with 4871 additions and 270 deletions

View File

@@ -0,0 +1,24 @@
syntax = "proto3";
package streamsvc;
option go_package = "example.com/demo/pb";
message StreamReq {
string input = 1;
}
message StreamReply {
string output = 1;
}
service StreamService {
// ServerStream: client sends one request, server returns a stream of responses.
rpc ServerStream(StreamReq) returns (stream StreamReply);
// ClientStream: client sends a stream of requests, server returns one response.
rpc ClientStream(stream StreamReq) returns (StreamReply);
// BidiStream: both client and server send streams of messages.
rpc BidiStream(stream StreamReq) returns (stream StreamReply);
}