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) 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 是etcd注册中心.
func (*Registry) Deregister ¶
Deregister 解除注册.
func (*Registry) GetService ¶
func (r *Registry) GetService(ctx context.Context, name string) ([]*registry.ServiceInstance, error)
GetService 根据服务名称返回注册中心中的服务实例.
Click to show internal directories.
Click to hide internal directories.