lock

package
v0.0.0-...-63c2375 Latest Latest
Warning

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

Go to latest
Published: May 13, 2015 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Wait

func Wait(client *etcd.Client, key string) error

Types

type Error

type Error struct {
	// contains filtered or unexported fields
}

func (*Error) Error

func (e *Error) Error() string

type Lock

type Lock struct {
	// contains filtered or unexported fields
}

func Acquire

func Acquire(client *etcd.Client, key string, ttl uint64) (*Lock, error)

func WaitAcquire

func WaitAcquire(client *etcd.Client, key string, ttl uint64) (*Lock, error)

func (*Lock) Release

func (l *Lock) Release() error

Jump to

Keyboard shortcuts

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