Versions in this module Expand all Collapse all v0 v0.1.1 Jul 22, 2022 v0.1.0 Jul 22, 2022 Changes in this version + type Option func(o *options) + func WithContext(ctx context.Context) Option + func WithMaxRetry(num int) Option + func WithNamespace(ns string) Option + func WithRegisterTTL(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)