The highest tagged major version is
v3.
package
Version:
v2.8.171
Opens a new window with list of versions in this module.
Published: Jan 5, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 15
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
GetClient
PS:
(1) 要使用 KV 的情况下,建议调用 clientv3.NewKV() 以实例化一个用于操作etcd的KV(内置错误重试机制).
(2) 租约相关需要用到 *clientv3.Client实例.
func MustSetUp(config *Config)
type Config struct {
Endpoints []string `json:"endpoints" yaml:"endpoints"`
LogPath string `json:"logPath,optional" yaml:"logPath"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.