nacos

package
v0.0.0-...-e59703d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NacosDiscovery

type NacosDiscovery struct {
	// contains filtered or unexported fields
}

func NewNacosDiscovery

func NewNacosDiscovery(options *regOps.DiscoveryOptions) *NacosDiscovery

func (*NacosDiscovery) GetService

func (d *NacosDiscovery) GetService(_ context.Context, serviceName string) ([]*registry.ServiceInstance, error)

GetService return the service instances in memory according to the service name.

func (*NacosDiscovery) Watch

func (d *NacosDiscovery) Watch(ctx context.Context, serviceName string) (registry.Watcher, error)

Watch creates a watcher according to the service name.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL