first
This commit is contained in:
@@ -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()
|
||||
}
|
||||
Reference in New Issue
Block a user