This commit is contained in:
Jay
2018-11-06 10:06:17 +08:00
commit 1e3ba45665
318 changed files with 197956 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
package background
import (
"github.com/robfig/cron"
)
var c *cron.Cron
// RegisterCron - register all cron
func RegisterCron() {
c = cron.New()
c.AddFunc("@daily", downloadGeoDB)
c.Start()
}