Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseTimerJob ¶
type BaseTimerJob struct { Interval time.Duration Worker func() // contains filtered or unexported fields }
func (*BaseTimerJob) Run ¶
func (j *BaseTimerJob) Run()
func (*BaseTimerJob) Stop ¶
func (j *BaseTimerJob) Stop()
type RedisLockerJob ¶
type RedisLockerJob struct { BaseTimerJob Redis *redis.Client LockID string LockExpire time.Duration }
func (*RedisLockerJob) Run ¶
func (j *RedisLockerJob) Run()
func (*RedisLockerJob) Stop ¶
func (j *RedisLockerJob) Stop()
type TimerJobList ¶
func (*TimerJobList) AddJob ¶
func (l *TimerJobList) AddJob(job ...TimerJob)
func (*TimerJobList) Start ¶
func (l *TimerJobList) Start()
func (*TimerJobList) Stop ¶
func (l *TimerJobList) Stop()
Click to show internal directories.
Click to hide internal directories.