Versions in this module Expand all Collapse all v0 v0.1.0 Oct 7, 2021 Changes in this version + var ErrWatchExist = errors.New("watch exist") + type Client struct + func New(conf *Conf) (*Client, error) + func (client *Client) Close() error + func (reg *Client) Del(key string) error + func (reg *Client) Put(key, val string) error + func (reg *Client) PutWithLease(key, val string) error + func (reg *Client) SetLease() error + func (w *Client) CleanAllWatch() + func (w *Client) Get(prefix string, get func(key, value string)) error + func (w *Client) UnWatch(prefix string) + func (w *Client) Watch(prefix string, put func(string, string), del func(string)) error + type Conf struct + Addr []string + DialTimeout int + LeaseGrantTTL int64