diff --git a/runner/options.go b/runner/options.go index 5c8598ae..a62babb7 100644 --- a/runner/options.go +++ b/runner/options.go @@ -43,6 +43,7 @@ type RunConfig struct { proto string importPaths []string protoset string + protosetBinary []byte enableCompression bool // security settings diff --git a/runner/requester.go b/runner/requester.go index fb753f4b..8175d952 100644 --- a/runner/requester.go +++ b/runner/requester.go @@ -78,6 +78,8 @@ func NewRequester(c *RunConfig) (*Requester, error) { mtd, err = protodesc.GetMethodDescFromProto(c.call, c.proto, c.importPaths) } else if c.protoset != "" { mtd, err = protodesc.GetMethodDescFromProtoSet(c.call, c.protoset) + } else if c.protosetBinary != nil { + mtd, err = protodesc.GetMethodDescFromProtoSetBinary(c.call, c.protosetBinary) } else { // use reflection to get method descriptor var cc *grpc.ClientConn