From 73fc1404739467c988bf4a10a96650d2c7974e2e Mon Sep 17 00:00:00 2001 From: Tristan Ang Date: Fri, 16 Jul 2021 17:54:00 -0400 Subject: [PATCH] add runner option --- runner/options.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/runner/options.go b/runner/options.go index a62babb7..1629e0ab 100644 --- a/runner/options.go +++ b/runner/options.go @@ -717,6 +717,14 @@ func WithProtoset(protoset string) Option { } } +func WithProtosetBinary(b []byte) Option { + return func(o *RunConfig) error { + o.protosetBinary = b + + return nil + } +} + // WithStreamInterval sets the stream interval func WithStreamInterval(d time.Duration) Option { return func(o *RunConfig) error {