pcm-kubernetes/main.go

20 lines
298 B
Go

package main
import (
"github.com/robfig/cron/v3"
"jcc-schedule/app"
)
// @title jcc调度中心
// @version 1.0
// @description jcc
func main() {
router := app.InitRouter()
c := cron.New()
app.QueryNodeEdgeInfo(c)
//app.SyncMonitor(c)
c.Start()
go app.Watch()
_ = router.Run(":8082")
}