Documentation ¶
Index ¶
- type Option
- type Registry
- func (r *Registry) Deregister(ctx context.Context, service *registry.ServiceInstance) error
- func (r *Registry) GetService(ctx context.Context, name string) ([]*registry.ServiceInstance, error)
- func (r *Registry) GetServiceList(ctx context.Context) ([]*registry.ServiceInstance, error)
- func (r *Registry) Register(ctx context.Context, service *registry.ServiceInstance) error
- func (r *Registry) Watch(ctx context.Context, name 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 etcd registry.
func (*Registry) Deregister ¶
Deregister the registration.
func (*Registry) GetService ¶
func (r *Registry) GetService(ctx context.Context, name string) ([]*registry.ServiceInstance, error)
GetService return the service instances in memory according to the service name.
func (*Registry) GetServiceList ¶
GetServiceList 获取全部服务列表
Click to show internal directories.
Click to hide internal directories.