Help us shape the future of Go! Take the 2026 Go Developer Survey

distlock

package
v0.19.6 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package distlock 是 data 门面子包:分布式锁——RedisLocker + WithLock + 优雅降级 + 手动续期 Renew + 分布式信号量 Semaphore + 分布式防爆破锁 Lockout。

re-export 自 github.com/oekit/redisx/distlock:类型为泛型 type alias(与源包**完全同一类型**, 双向赋值互通);非泛型函数/变量经 var 引用同一函数值。源包新增导出符号时 本壳需同步(门面跟版税,data 门面化决策已接受)。

Index

Constants

This section is empty.

Variables

View Source
var ErrLockNotAcquired = src.ErrLockNotAcquired
View Source
var ErrLockTimeout = src.ErrLockTimeout
View Source
var NewLockout = src.NewLockout
View Source
var NewRedisLocker = src.NewRedisLocker
View Source
var NewSemaphore = src.NewSemaphore
View Source
var WithAutoRenew = src.WithAutoRenew
View Source
var WithGracefulDegradation = src.WithGracefulDegradation
View Source
var WithLock = src.WithLock
View Source
var WithMaxAutoRenew = src.WithMaxAutoRenew
View Source
var WithOnLock = src.WithOnLock
View Source
var WithOnUnlock = src.WithOnUnlock
View Source
var WithPrefix = src.WithPrefix
View Source
var WithRenewInterval = src.WithRenewInterval
View Source
var WithRetryInterval = src.WithRetryInterval

Functions

This section is empty.

Types

type Locker

type Locker = src.Locker

type Lockout added in v0.13.0

type Lockout = src.Lockout

type LockoutConfig added in v0.13.0

type LockoutConfig = src.LockoutConfig

type RedisLocker

type RedisLocker = src.RedisLocker

type RedisLockerOption

type RedisLockerOption = src.RedisLockerOption

type Semaphore added in v0.10.0

type Semaphore = src.Semaphore

Jump to

Keyboard shortcuts

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