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 LockoutConfig ¶ added in v0.13.0
type LockoutConfig = src.LockoutConfig
type RedisLocker ¶
type RedisLocker = src.RedisLocker
type RedisLockerOption ¶
type RedisLockerOption = src.RedisLockerOption
Click to show internal directories.
Click to hide internal directories.