Documentation ¶
Index ¶
- func DeleteKey(key string) error
- func GetKey(key string) (string, error)
- func GetKeys(dir string) (client.Nodes, error)
- func IsKeyExist(key string) bool
- func SetDBAddr(addr string)
- func SetKey(key, value string) error
- func SetKeyTTL(key, value string, ttl int) error
- func WatchKey(key string) (client.Watcher, error)
- type EtcdMutexLock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsKeyExist ¶
Types ¶
type EtcdMutexLock ¶
func GetEtcdMutexLock ¶
func GetEtcdMutexLock(name string, expired int64) *EtcdMutexLock
func (EtcdMutexLock) Lock ¶
func (mutexLock EtcdMutexLock) Lock() error
func (EtcdMutexLock) Release ¶
func (mutexLock EtcdMutexLock) Release() error
Click to show internal directories.
Click to hide internal directories.