Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrResourceLocked = fmt.Errorf("resource already locked")
)
Functions ¶
This section is empty.
Types ¶
type LockManager ¶
type LockManager struct {
// contains filtered or unexported fields
}
func NewLockManager ¶
func NewLockManager(rds *redis.Client) (*LockManager, error)
func (*LockManager) Prefix ¶
func (m *LockManager) Prefix() string
func (*LockManager) SetPrefix ¶
func (m *LockManager) SetPrefix(prefix string)
Click to show internal directories.
Click to hide internal directories.