etcd

package
v2.0.17 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: MIT Imports: 15 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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