Documentation ¶
Index ¶
- type V2
- func (this *V2) DeleteV2(key string) (*client.Response, error)
- func (this *V2) DeleteWithPrefixV2(key string) (*client.Response, error)
- func (this *V2) GetV2(key string) (*client.Response, error)
- func (this *V2) GetWithPreifxV2(key string) (*client.Response, error)
- func (this *V2) Init() error
- func (this *V2) PutTtlV2(key, value string, ttl int64) (*client.Response, error)
- func (this *V2) PutV2(key, value string) (*client.Response, error)
- func (this *V2) SetDir(key string) (*client.Response, error)
- type V3
- func (this *V3) DeleteV3(key string) (*clientv3.DeleteResponse, error)
- func (this *V3) DeleteWithPrefixV3(key string) (*clientv3.DeleteResponse, error)
- func (this *V3) GetV3(key string) (*clientv3.GetResponse, error)
- func (this *V3) GetWithPreifxV3(key string) (*clientv3.GetResponse, error)
- func (this *V3) Init() error
- func (this *V3) PutTtlV3(key, value string, ttl int64) (*clientv3.PutResponse, error)
- func (this *V3) PutV3(key, value string) (*clientv3.PutResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type V2 ¶
type V2 struct { Endpoints []string Username string Password string Cli client.Client KeysApi client.KeysAPI }
func NewConnV2 ¶
data []string{"http://localhost:2379"}
func (*V2) DeleteWithPrefixV2 ¶
type V3 ¶
func (*V3) DeleteWithPrefixV3 ¶
func (this *V3) DeleteWithPrefixV3(key string) (*clientv3.DeleteResponse, error)
func (*V3) GetWithPreifxV3 ¶
func (this *V3) GetWithPreifxV3(key string) (*clientv3.GetResponse, error)
Click to show internal directories.
Click to hide internal directories.