lock

package
v1.0.25 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrClientNil 客户端nil
	ErrClientNil = errors.New("client is nil")
	// ErrLock 加锁/获取锁失败
	ErrLock = errors.New("lock fail")
	// ErrUnLock 解锁失败
	ErrUnLock = errors.New("unlock fail")
)

Functions

This section is empty.

Types

type Locker

type Locker interface {
	Lock(ctx context.Context, key string, random interface{}, duration time.Duration) (err error)
	Unlock(ctx context.Context, key string, random interface{}) (err error)
}

Directories

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

Jump to

Keyboard shortcuts

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