Versions in this module Expand all Collapse all v1 v1.0.1 Feb 8, 2024 v1.0.0 Feb 8, 2024 Changes in this version + func NewRegistry(etcdEndpoints []string, id string, instanceName string, ...) (registry.Registry, *registry.ServiceInstance, error) + 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)