增加可配置的定时任务功能

This commit is contained in:
dushixiang
2021-02-28 23:56:25 +08:00
parent 5ea00d8e8a
commit 1b8ecefcfe
10 changed files with 862 additions and 83 deletions

View File

@ -2,6 +2,7 @@ package global
import (
"github.com/patrickmn/go-cache"
"github.com/robfig/cron/v3"
"gorm.io/gorm"
"next-terminal/pkg/config"
)
@ -13,3 +14,5 @@ var Cache *cache.Cache
var Config *config.Config
var Store *TunStore
var Cron *cron.Cron