Documentation ¶ Index ¶ func NewRegistry(opts ...Option) (registry.Registry, error) type Option func WithConn(c grpc.ClientConnInterface) Option type Options type URLOpener func (o *URLOpener) OpenURL(ctx context.Context, u *url.URL) (registry.Registry, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewRegistry ¶ func NewRegistry(opts ...Option) (registry.Registry, error) NewRegistry returns a new registry service client Types ¶ type Option ¶ type Option func(*Options) func WithConn ¶ func WithConn(c grpc.ClientConnInterface) Option WithConn sets the gRPC connection type Options ¶ type Options struct { Addrs []string Timeout time.Duration Secure bool TLSConfig *tls.Config // Other options for implementations of the interface // can be stored in a context Context context.Context } type URLOpener ¶ type URLOpener struct { grpc.ClientConnInterface } func (*URLOpener) OpenURL ¶ func (o *URLOpener) OpenURL(ctx context.Context, u *url.URL) (registry.Registry, error) Source Files ¶ View all Source files client.go options.go watcher.go Click to show internal directories. Click to hide internal directories.