Documentation ¶
Index ¶
- type 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) Name() string
- func (r *Registry) Register(_ context.Context, si *registry.ServiceInstance) error
- func (r *Registry) ServerConfigs() string
- func (r *Registry) Watch(ctx context.Context, serviceName string) (registry.Watcher, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry is nacos registry.
func New ¶
func New(cli naming_client.INamingClient, opts *options) (r *Registry)
New new a nacos registry.
func (*Registry) Deregister ¶
Deregister the registration.
func (*Registry) GetService ¶
func (r *Registry) GetService(_ context.Context, serviceName string) ([]*registry.ServiceInstance, error)
GetService return the service instances in memory according to the service name.
func (*Registry) ServerConfigs ¶
Click to show internal directories.
Click to hide internal directories.