AsyncLock

package
Version: v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAsyncLock

func AddAsyncLock(key, Name string)

func AddEtcdLock

func AddEtcdLock(key, Name string) (succ bool)

func AddZKLock

func AddZKLock(key, Name string) (succ bool)

func NewAsyncLock

func NewAsyncLock(pools []redsync.Pool)

func NewEtcdLock

func NewEtcdLock(machines []string)

machines are the ectd cluster addresses, such as: http://127.0.0.1:2379

func NewZKLock

func NewZKLock(ips []string)

ip -> ip:port

func ReleaseAsyncLock

func ReleaseAsyncLock(key, Name string)

func ReleaseEtcdLock

func ReleaseEtcdLock(key, Name string)

func ReleaseZKLock

func ReleaseZKLock(key, Name string)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL