Versions in this module Expand all Collapse all v1 v1.12.1 Dec 19, 2024 v1.12.0 Dec 19, 2024 Changes in this version + func NewRegistry(nacosIPAddr string, nacosPort int, nacosNamespaceID string, id string, ...) (registry.Registry, *registry.ServiceInstance, error) + type Option func(o *options) + func WithCluster(cluster string) Option + func WithDefaultKind(kind string) Option + func WithGroup(group string) Option + func WithPrefix(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(_ context.Context, service *registry.ServiceInstance) error + func (r *Registry) GetService(_ context.Context, serviceName string) ([]*registry.ServiceInstance, error) + func (r *Registry) Register(_ context.Context, si *registry.ServiceInstance) error + func (r *Registry) Watch(ctx context.Context, serviceName string) (registry.Watcher, error)