Versions in this module Expand all Collapse all v1 v1.1.1 Apr 27, 2021 Changes in this version + type Option func(o *options) + func WithCluster(cluster string) Option + func WithGroup(group string) Option + func WithProfix(prefix string) Option + func WithWeight(weight float64) Option + type Registry struct + func New(cli naming_client.INamingClient, opts ...Option) (r *Registry) + func (r *Registry) Deregister(ctx context.Context, service *registry.ServiceInstance) error + func (r *Registry) GetService(ctx context.Context, serviceName string) ([]*registry.ServiceInstance, error) + func (r *Registry) Register(ctx context.Context, si *registry.ServiceInstance) error + func (r *Registry) Watch(ctx context.Context, serviceName string) (registry.Watcher, error)