Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lock ¶
type Lock interface {
Lock(name string, fire time.Time) bool
Unlock(name string, fire time.Time) bool
}
func NewMongoLock ¶
func NewNullLock ¶
func NewNullLock() Lock
func NewRedisLock ¶
func NewRedisLock() Lock
Click to show internal directories.
Click to hide internal directories.