mirror of
https://gitee.com/winc-link/hummingbird.git
synced 2025-04-21 17:02:43 +00:00
20 lines
192 B
Go
20 lines
192 B
Go
package crontab
|
|
|
|
import "github.com/robfig/cron/v3"
|
|
|
|
var (
|
|
Schedule *cron.Cron
|
|
)
|
|
|
|
func init() {
|
|
Schedule = cron.New()
|
|
}
|
|
|
|
func Start() {
|
|
Schedule.Start()
|
|
}
|
|
|
|
func Stop() {
|
|
Schedule.Stop()
|
|
}
|