Documentation ¶
Index ¶
- func Client() *etcd.Client
- func Conn(cfg etcd.Config) *util.Err
- func Del(key string, opts ...etcd.OpOption) *util.Err
- func Get(key string, fn util.StrBytesToBool, opts ...etcd.OpOption) (bool, *util.Err)
- func GetOne(key string, opts ...etcd.OpOption) ([]byte, *util.Err)
- func Grant(ttl int64) (int64, *util.Err)
- func Has(key string, opts ...etcd.OpOption) (bool, *util.Err)
- func Lock(key string, fn util.ToErr) *util.Err
- func Put(key, val string) *util.Err
- func PutWithTtl(key, val string, ttl int64) (int64, *util.Err)
- func Revoke(id int64) *util.Err
- func TryLock(key string, fn util.Fn) *util.Err
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.