示例#1
0
func main() {
	cfg := flag.String("c", "cfg.json", "configuration file")
	flag.Parse()
	g.ParseConfig(*cfg)
	initFuncMap()
	go proc.PaddingIp()
	go proc.DeleteRbsRecord()
	go proc.CheckAuth()

	models.InitDatabase()
	//	cache.InitCache()
	beego.Run()
	select {}
}
示例#2
0
func main() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/ws", &controllers.WSController{})
	beego.Run()
}
示例#3
0
func main() {
	beego.RESTRouter("/object", &controllers.ObjectController{})
	beego.Run()
}