示例#1
0
文件: app.go 项目: speedland/service
func init() {
	wcg.ConfigureProcess("wcg.ini") // we don't rely on wcg.ini file and configure using default properties.
	s := server.NewInstance()
	// s.Init = serverInit
	// s.Include(	)
	s.Run()
}
示例#2
0
文件: app.go 项目: speedland/service
func init() {
	wcg.ConfigureProcess("wcg.ini") // we don't rely on wcg.ini file and configure using default properties.
	s := server.NewInstance()
	s.Init = serverInit
	s.Include(
		admin.NewApp(),
		hooks.NewApp(),
		debug.NewApp(s),
		users.NewApp(),
		home.NewApp(),
		pt.NewApp(),
		hplinkapi.NewApp(),
		hplinkadmin.NewApp(),
		hplinkoperations.NewApp(),
	)
	s.Run()
}