Documentation
¶
Index ¶
Constants ¶
View Source
const (
LockerPrefix = "_locker_"
)
Variables ¶
View Source
var MaxLockerDuration time.Duration = 30 * time.Minute
Functions ¶
This section is empty.
Types ¶
type Locker ¶
type Locker interface { Lock(ctx context.Context, resource string) (Release, error) LockWithtimeout(ctx context.Context, resource string, timeout time.Duration) (Release, error) }
func InitRedisLocker ¶ added in v0.9.0
type RedisLocker ¶ added in v0.9.0
func (*RedisLocker) LockWithtimeout ¶ added in v0.9.0
Click to show internal directories.
Click to hide internal directories.