Documentation ¶
Index ¶
- func AddAsyncLock(key, Name string)
- func AddEtcdLock(key, Name string) (succ bool)
- func AddZKLock(key, Name string) (succ bool)
- func NewAsyncLock(pools []redsync.Pool)
- func NewEtcdLock(machines []string)
- func NewZKLock(ips []string)
- func ReleaseAsyncLock(key, Name string)
- func ReleaseEtcdLock(key, Name string)
- func ReleaseZKLock(key, Name string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAsyncLock ¶
func AddAsyncLock(key, Name string)
func AddEtcdLock ¶
func NewAsyncLock ¶
func NewAsyncLock(pools []redsync.Pool)
func NewEtcdLock ¶
func NewEtcdLock(machines []string)
machines are the ectd cluster addresses, such as: http://127.0.0.1:2379
func ReleaseAsyncLock ¶
func ReleaseAsyncLock(key, Name string)
func ReleaseEtcdLock ¶
func ReleaseEtcdLock(key, Name string)
func ReleaseZKLock ¶
func ReleaseZKLock(key, Name string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.