etcd

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: MIT Imports: 15 Imported by: 0

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)

Jump to

Keyboard shortcuts

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