Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitCronJobs ¶
func InitCronJobs()
InitCronJobs 初始化定时任务
@author centonhuang @update 2024-12-05 16:14:59
Types ¶
type CleanExpiredURLsCron ¶
type CleanExpiredURLsCron struct {
// contains filtered or unexported fields
}
CleanExpiredURLsCron 清理过期的URL
@author centonhuang @update 2024-12-05 16:14:35
func (*CleanExpiredURLsCron) Start ¶
func (c *CleanExpiredURLsCron) Start()
Start 启动定时任务
@receiver c *CleanExpiredURLsCron @author centonhuang @update 2024-12-05 16:14:45
type Cron ¶
type Cron interface {
Start()
}
Cron 定时任务接口
@author centonhuang @update 2024-12-05 16:14:29
func NewCleanExpiredURLsCron ¶
func NewCleanExpiredURLsCron() Cron
NewCleanExpiredURLsCron 创建清理过期的URL定时任务
@return Cron @author centonhuang @update 2024-12-05 16:14:39
Click to show internal directories.
Click to hide internal directories.