Versions in this module Expand all Collapse all v1 v1.0.2 Dec 24, 2021 v1.0.1 Dec 24, 2021 Changes in this version + type Option func(o *options) + func Context(ctx context.Context) Option + func MaxRetry(num int) Option + func Namespace(ns string) Option + func RegisterTTL(ttl time.Duration) Option + type Registry struct + func New(client *clientv3.Client, opts ...Option) (r *Registry) + func (r *Registry) Deregister(ctx context.Context, service *registry.ServiceInstance) error + func (r *Registry) GetService(ctx context.Context, name string) ([]*registry.ServiceInstance, error) + func (r *Registry) Register(ctx context.Context, service *registry.ServiceInstance) error + func (r *Registry) Watch(ctx context.Context, name string) (registry.Watcher, error)