support mulitple protoset files (#2190)

This commit is contained in:
马守越
2022-07-27 09:10:23 +08:00
committed by GitHub
parent 5d7919a9f5
commit 5348375b99
2 changed files with 5 additions and 4 deletions

View File

@@ -29,8 +29,9 @@ type (
Upstream struct {
// Grpc is the target of the upstream.
Grpc zrpc.RpcClientConf
// ProtoSet is the file of proto set, like hello.pb
ProtoSet string `json:",optional"`
// ProtoSets is the file list of proto set, like [hello.pb]
// if your proto file import another proto file, you need to write multi-file slice, like [hello.pb, common.pb]
ProtoSets []string `json:",optional"`
// Mapping is the mapping between gateway routes and Upstream rpc methods.
// Keep it blank if annotations are added in rpc methods.
Mapping []RouteMapping `json:",optional"`