You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"XProxy/next/assets"
|
|
|
|
"XProxy/next/logger"
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
|
|
|
|
logger.Warnf("cron -> `%s`", assets.GetCron())
|
|
|
|
assets.SetCron("@every 1s")
|
|
|
|
logger.Warnf("cron -> `%s`", assets.GetCron())
|
|
|
|
|
|
|
|
time.Sleep(5 * time.Second)
|
|
|
|
assets.SetCron("@every 2s")
|
|
|
|
logger.Warnf("cron -> `%s`", assets.GetCron())
|
|
|
|
|
|
|
|
time.Sleep(8 * time.Second)
|
|
|
|
assets.SetCron("")
|
|
|
|
logger.Warnf("cron -> `%s`", assets.GetCron())
|
|
|
|
select {}
|
|
|
|
|
|
|
|
//assets.LoadBuildin()
|
|
|
|
|
|
|
|
//remoteAssets := map[string]string{
|
|
|
|
// "geoip.dat": "https://cdn.dnomd343.top/v2ray-rules-dat/geoip.dat.xz",
|
|
|
|
// "geosite.dat": "https://cdn.dnomd343.top/v2ray-rules-dat/geosite.dat.xz",
|
|
|
|
//}
|
|
|
|
//assets.Update(false)
|
|
|
|
//assets.SetUpdateConfig(assets.UpdateSettings{
|
|
|
|
// cron: "",
|
|
|
|
// ass
|
|
|
|
//})
|
|
|
|
}
|