Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EtcdClient ¶
type EtcdClient struct {
// contains filtered or unexported fields
}
func (*EtcdClient) DeRegister ¶
func (c *EtcdClient) DeRegister()
func (*EtcdClient) GetServiceURL ¶
func (c *EtcdClient) GetServiceURL(servicename string, groupName ...string) (string, string)
func (*EtcdClient) GetServices ¶
func (c *EtcdClient) GetServices(servicename string, groupName ...string) ([]string, error)
GetServices v2 新增:返回该服务在 etcd 上注册的全部实例 URL 列表。 与 GetServiceURL 走同一条 prefix 扫描路径,只是把"随机选一个"改为"全部返回"。
func (*EtcdClient) Register ¶
func (c *EtcdClient) Register(etcdConfigData []byte)
Click to show internal directories.
Click to hide internal directories.