Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LockServer ¶
type LockServer struct { Zk *zookeeper.Conn Session <-chan zookeeper.Event configs.LockServerSection // contains filtered or unexported fields }
func NewLockServer ¶
func NewLockServer(config configs.LockServerSection) (*LockServer, error)
func (*LockServer) Close ¶
func (ls *LockServer) Close()
func (*LockServer) Lock ¶
func (ls *LockServer) Lock(node string) error
func (*LockServer) Locks ¶
func (ls *LockServer) Locks() []string
func (*LockServer) Unlock ¶
func (ls *LockServer) Unlock(node string) error
Click to show internal directories.
Click to hide internal directories.