mutex

package
v0.0.0-...-a02da8a Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mutex

type Mutex interface {
	Lock(ctx context.Context) error
	Unlock(ctx context.Context) (ok bool, err error)
}

type MutexProvider

type MutexProvider interface {
	ProvideCreateUserMutex(uid uint32) Mutex
}

func NewMutexProvider

func NewMutexProvider(sync *redsync.Redsync) MutexProvider

Jump to

Keyboard shortcuts

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