lock

package
v0.0.0-...-0f10cec Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2013 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Acquire

func Acquire(cli *etcd.Client, lock string, timeout uint64) (goChan chan int, stopChan chan int)

This will attempt to Acquire a lock for a given amount of time. If the lock is acquired, goChan will be unblocked If the lock is lost, stopChan will be unblocked TODO: Handle non-expected errors

Types

This section is empty.

Jump to

Keyboard shortcuts

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