diff --git a/options.go b/options.go index 483356ce..988fc5c5 100644 --- a/options.go +++ b/options.go @@ -104,6 +104,13 @@ func Registry(r registry.Registry) Option { } } +// Selector sets the selector for the service client +func Selector(s selector.Selector) Option { + return func(o *Options) { + o.Client.Init(client.Selector(s)) + } +} + // Transport sets the transport for the service // and the underlying components func Transport(t transport.Transport) Option {