Documentation ¶
Overview ¶
package cluster specifies clustering primitives for multi-node service coordination.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lock ¶
type Lock interface { // Lock and Unlock are simple, coarse grain locks based on a pre-defined // lock path. The lock path is an implementation detail that isn't negotiated // through this interface. A context is accepted for setting wait bounds. Lock(context.Context) error Unlock(context.Context) error UnlockLogError(context.Context) // Owner returns the current owner value. Owner() interface{} }
Lock defines a distributed locking service.
Directories ¶
Path | Synopsis |
---|---|
package zookeeper implements a ZooKeeper based Lock.
|
package zookeeper implements a ZooKeeper based Lock. |
Click to show internal directories.
Click to hide internal directories.