Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultLockTTL = 30 * time.Second MinimumLockTTL = 100 * time.Millisecond MaximumLockTTL = 5 * time.Minute )
View Source
const (
RedisLockerKey = "Key.RedisLockerKey"
)
Variables ¶
View Source
var ( ErrRedisMutexNotFound = errors.New("RedisMutex Not Found") ErrLockError = errors.New("Failed to acquire lock") )
View Source
var (
ErrInternalError = errors.New("InternalError")
)
Functions ¶
func OptionArgs ¶
func OptionArgs(args *RedisOptions)
func RedisMutexContext ¶ added in v0.0.3
Types ¶
type Mutex ¶ added in v0.0.3
func NewRedisMutex ¶ added in v0.0.3
func RedisMutexFromContext ¶ added in v0.0.3
type RedisLock ¶ added in v0.0.3
type RedisLock struct {
// contains filtered or unexported fields
}
type RedisMutex ¶ added in v0.0.3
type RedisMutex struct {
// contains filtered or unexported fields
}
type RedisOptions ¶
type RedisOptions struct {
bank.ServerOptions
}
Click to show internal directories.
Click to hide internal directories.