cron

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL