Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registrar ¶
type Registrar interface { Register(ctx context.Context, service *ServiceInstance) error Deregister(ctx context.Context, service *ServiceInstance) error }
type ServiceInstance ¶
type Watcher ¶
type Watcher interface { Next() ([]*ServiceInstance, error) //1. 第一次监听时,如果服务实例列表不为空,则返回服务实例列表。2. 如果服务实例发生变化,则返回服务实例列表。3. 如果上面两种情况都不满足,则会阻塞到context deadline或者cancel Stop() error }
Directories ¶
Path | Synopsis |
---|---|
Package kuberegistry registry simply implements the Kubernetes-based Registry
|
Package kuberegistry registry simply implements the Kubernetes-based Registry |
Click to show internal directories.
Click to hide internal directories.