package
Version:
v2.0.17
Opens a new window with list of versions in this module.
Published: May 23, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 12
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"`
LogPath string `json:"logPath,optional"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.