|
|
@ -6,9 +6,11 @@ import ( |
|
|
|
"hudongzhuanjia/controllers/client" |
|
|
|
"hudongzhuanjia/controllers/common" |
|
|
|
"hudongzhuanjia/controllers/pc" |
|
|
|
//_ "net/http/pprof"
|
|
|
|
) |
|
|
|
|
|
|
|
func main() { |
|
|
|
|
|
|
|
// pc
|
|
|
|
core.GetInstanceRouterManage().Registered(new(pc.WsCtl)) // 用户
|
|
|
|
core.GetInstanceRouterManage().Registered(new(pc.UserCtl)) // 用户
|
|
|
@ -52,5 +54,12 @@ func main() { |
|
|
|
core.GetInstanceRouterManage().Registered(new(common.AnnexCtl)) |
|
|
|
core.GetInstanceRouterManage().Registered(new(common.WeChatOauthCtl)) |
|
|
|
|
|
|
|
//r := osmanthuswine.GetChiRouter()
|
|
|
|
//r.HandleFunc("/debug/pprof/", pprof.Index)
|
|
|
|
//r.HandleFunc("/debug/pprof/cmdline", pprof.Cmdline)
|
|
|
|
//r.HandleFunc("/debug/pprof/profile", pprof.Profile)
|
|
|
|
//r.HandleFunc("/debug/pprof/symbol", pprof.Symbol)
|
|
|
|
//r.HandleFunc("/debug/pprof/trace", pprof.Trace)
|
|
|
|
|
|
|
|
osmanthuswine.Run() |
|
|
|
} |