lockserver

package
v0.0.0-...-e6af7e3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2016 License: LGPL-3.0 Imports: 8 Imported by: 1

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

func (*LockServer) Watch

func (ls *LockServer) Watch(node string) (<-chan zookeeper.Event, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL