Versions in this module Expand all Collapse all v0 v0.4.0 Dec 21, 2024 Changes in this version + type Option func(o *options) + func Context(ctx context.Context) Option + func MaxRetry(num int) Option + func RegisterTTL(ttl time.Duration) Option + type Registry struct + func New(client *clientv3.Client, logger log.Logger, 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)