From e1049efd88f230f36817f2cdeb03b2549b648de2 Mon Sep 17 00:00:00 2001 From: Tristan Ang Date: Fri, 16 Jul 2021 16:49:29 -0400 Subject: [PATCH] add protoset binary field --- runner/options.go | 1 + runner/requester.go | 2 ++ 2 files changed, 3 insertions(+) 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