Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChannelLocker ¶
type ChannelLocker struct {
// contains filtered or unexported fields
}
func (*ChannelLocker) AddLock ¶
func (c *ChannelLocker) AddLock() error
func (*ChannelLocker) UnLock ¶
func (c *ChannelLocker) UnLock() error
type MutexLocker ¶
type MutexLocker struct {
// contains filtered or unexported fields
}
func (*MutexLocker) AddLock ¶
func (local *MutexLocker) AddLock() error
func (*MutexLocker) UnLock ¶
func (local *MutexLocker) UnLock() error
type MyTasksLocker ¶
type MyTasksLocker struct {
// contains filtered or unexported fields
}
任务锁,当计划任务里设置exclusive = true时使用
func (*MyTasksLocker) GetTaskLocker ¶
func (mtl *MyTasksLocker) GetTaskLocker(taskName string) Locker
type RedisLocker ¶
type RedisLocker struct {
// contains filtered or unexported fields
}
func NewRedisLocker ¶
func (*RedisLocker) AddLock ¶
func (rd *RedisLocker) AddLock() error
func (*RedisLocker) UnLock ¶
func (rd *RedisLocker) UnLock() error
Click to show internal directories.
Click to hide internal directories.