Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lock ¶
type Lock struct {
// contains filtered or unexported fields
}
Lock is an in-memory lock
type LockFactory ¶
type LockFactory struct {
// contains filtered or unexported fields
}
LockFactory is an in-memory based LockFactory
func NewLockFactory ¶
func NewLockFactory() (*LockFactory, io.Closer)
NewLockFactory returns configured Redis based LockFactory
func (*LockFactory) CreateLock ¶
func (lf *LockFactory) CreateLock(name string) locks.Lock
CreateLock returns lock instance (not yet locked)
Click to show internal directories.
Click to hide internal directories.