Ejemplo n.º 1
0
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()
}
Ejemplo n.º 2
0
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()
}