Versions in this module Expand all Collapse all v0 v0.2.1 May 28, 2021 Changes in this version + const ConnDelay + const MaxFailTimes + const MetadataETCDV3Client + const RegistryETCDV3Client + var ErrKVPairNotFound = perrors.New("k/v pair not found") + var ErrNilETCDV3Client = perrors.New("etcd raw client is nil") + type Client struct + Wait sync.WaitGroup + func NewClient(name string, endpoints []string, timeout time.Duration, heartbeat int) (*Client, error) + func NewConfigClient(opts ...Option) *Client + func (c *Client) CleanKV() error + func (c *Client) Close() + func (c *Client) Create(k string, v string) error + func (c *Client) Delete(k string) error + func (c *Client) Done() <-chan struct{} + func (c *Client) Get(k string) (string, error) + func (c *Client) GetChildrenKVList(k string) ([]string, []string, error) + func (c *Client) RegisterTemp(k, v string) error + func (c *Client) Update(k, v string) error + func (c *Client) Valid() bool + func (c *Client) Watch(k string) (clientv3.WatchChan, error) + func (c *Client) WatchWithPrefix(prefix string) (clientv3.WatchChan, error) + type Option func(*Options) + func WithEndpoints(endpoints ...string) Option + func WithHeartbeat(heartbeat int) Option + func WithName(name string) Option + func WithTimeout(timeout time.Duration) Option + type Options struct v0.2.1-rc2 Jun 2, 2021