locker

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultRetry = 10
View Source
const DefaultRetryDuration = time.Duration(100) * time.Millisecond

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisMutexLocker

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

func NewRedisMutexLocker

func NewRedisMutexLocker(client *redis.Client) *RedisMutexLocker

func (*RedisMutexLocker) CreateMutexLock

func (r *RedisMutexLocker) CreateMutexLock(name string, lockOptions contracts.LockOptions) contracts.Lock

Jump to

Keyboard shortcuts

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