aulocker

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 6 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 interface {
	Release(
		ctx context.Context,
	) error
}

type Locker

type Locker interface {
	ObtainLock(
		ctx context.Context,
		key string,
	) (Lock, error)
}

func NewMemoryLocker

func NewMemoryLocker() Locker

func NewRedisLocker

func NewRedisLocker(
	redisURL string,
	redisPassword string,
) Locker

Jump to

Keyboard shortcuts

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