Versions in this module Expand all Collapse all v1 v1.0.0 Dec 24, 2024 Changes in this version + var Config = Configuration + func AddFunc(key string, initFunc InitFunc, watchFunc WatchFunc) + func Restart() + func Start() + type Client struct + func GlobalClient() *Client + func (c *Client) AddFunc(key string, initFunc InitFunc, watchFunc WatchFunc) + func (c *Client) Close() error + func (c *Client) Ctx() context.Context + func (c *Client) DelValue(key string) (*clientv3.DeleteResponse, error) + func (c *Client) DelValueWithPrefix(prefix string) (*clientv3.DeleteResponse, error) + func (c *Client) GetValue(key string) (*clientv3.GetResponse, error) + func (c *Client) GetValueWithPrefix(prefix string) (*clientv3.GetResponse, error) + func (c *Client) Open(etcdUrl []string, userName, passWord string, dialTimeout time.Duration) error + func (c *Client) PutValue(key, value string) (*clientv3.PutResponse, error) + func (c *Client) Restart() + func (c *Client) Start() + func (c *Client) WatchWithPrefix(prefix string, revision int64) clientv3.WatchChan + type Configuration struct + DialTimeout int + Password string + Url []string + UserName string + func (c *Configuration) Close() error + func (c *Configuration) Init() error + func (c *Configuration) Name() string + type InitFunc func(ctx context.Context, res *clientv3.GetResponse) + type WatchFunc func(ctx context.Context, res *clientv3.WatchResponse)