Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) Close(key string)
- func (c *Client) Connect(conf Config) error
- func (c *Client) Delete(key string, isPrefix bool) error
- func (c *Client) Get(key string, isPrefix bool) (Values, error)
- func (c *Client) Grant(ttl int64) (clientv3.LeaseID, error)
- func (c *Client) KeepAlive(leaseId clientv3.LeaseID) (<-chan *clientv3.LeaseKeepAliveResponse, error)
- func (c *Client) KeepAliveOnce(leaseId clientv3.LeaseID) (*clientv3.LeaseKeepAliveResponse, error)
- func (c *Client) Put(key, value string, opts ...clientv3.OpOption) error
- func (c *Client) Revoke(leaseId clientv3.LeaseID) error
- func (c *Client) Shutdown()
- func (c *Client) Watch(e IEvent, opts ...clientv3.OpOption) error
- type Config
- type IEvent
- type Values
Constants ¶
View Source
const (
Req_Timeout time.Duration = 30
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) KeepAliveOnce ¶
Click to show internal directories.
Click to hide internal directories.