redislock

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2022 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lock

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

func (Lock) Lock

func (l Lock) Lock() (chan struct{}, error)

func (Lock) Unlock

func (l Lock) Unlock() error

type Pool

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

func NewPool

func NewPool(redisAddresses []string) (Pool, error)

func (Pool) NewLock

func (p Pool) NewLock(lockName string, expiry time.Duration) Lock

Jump to

Keyboard shortcuts

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