Documentation ¶
Overview ¶
fork from github.com/zieckey/etcdsync
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mutex ¶
type Mutex struct {
// contains filtered or unexported fields
}
A Mutex is a mutual exclusion lock which is distributed across a cluster.
func New ¶
New creates a Mutex with the given key which must be the same across the cluster nodes. machines are the ectd cluster addresses
func (*Mutex) LockBlocking ¶
LockNonBlock locks m. If the lock is already in use, the calling goroutine blocks until the mutex is available.
func (*Mutex) SetDebugLogger ¶
Click to show internal directories.
Click to hide internal directories.