dlock

package
v0.0.0-...-d24e03e Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2022 License: MIT Imports: 2 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 {
	Lock(id string, expiry time.Duration) (bool, error)
	Unlock(id string) error
	IsLocked(id string) (bool, error)
}

func NewLock

func NewLock(client *redis.Client) Lock

Directories

Path Synopsis
Package mock_dlock is a generated GoMock package.
Package mock_dlock is a generated GoMock package.

Jump to

Keyboard shortcuts

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