Documentation ¶
Index ¶
- Variables
- func WatchLoop(rch clientv3.WatchChan, cb WatchCallback, wg *sync.WaitGroup)
- type Client
- func (c *Client) Compact(rev int64, opts ...clientv3.CompactOption) (*clientv3.CompactResponse, error)
- func (c *Client) Delete(key string) (int64, error)
- func (c *Client) DeleteWithPrefix(prefix string) (int64, error)
- func (c *Client) Get(key string) ([]byte, error)
- func (c *Client) GetString(key string) (string, error)
- func (c *Client) GetStrings(prefix string) (map[string]string, error)
- func (c *Client) GrantLease(timeout int64) (clientv3.LeaseID, error)
- func (c *Client) Init(endpoint string) (err error)
- func (c *Client) KeepAliveLease(leaseID clientv3.LeaseID) (<-chan *clientv3.LeaseKeepAliveResponse, error)
- func (c *Client) Put(key string, value string) error
- func (c *Client) PutWithLease(key string, value string, leaseID clientv3.LeaseID) error
- func (c *Client) Watch(key string) clientv3.WatchChan
- func (c *Client) WatchWithPrefix(prefix string) clientv3.WatchChan
- type WatchCallback
Constants ¶
This section is empty.
Variables ¶
View Source
var C = New()
Functions ¶
Types ¶
type Client ¶
func (*Client) Compact ¶
func (c *Client) Compact(rev int64, opts ...clientv3.CompactOption) (*clientv3.CompactResponse, error)
func (*Client) KeepAliveLease ¶
func (*Client) PutWithLease ¶
type WatchCallback ¶
Click to show internal directories.
Click to hide internal directories.