This commit is contained in:
aozhiwei 2023-10-01 09:38:42 +08:00
parent 910e7417d6
commit 354c5e7166
3 changed files with 11 additions and 3 deletions

View File

@ -27,8 +27,8 @@ func (this *app) Run(initCb func(), unInitCb func()) {
func (this *app) Init() {
f5.LoadMetaTable(mt.Table)
this.registerDataSources()
this.ginEngine = gin.New()
this.ginEngine.Use(gin.Recovery())
//this.ginEngine = gin.New()
//this.ginEngine.Use(gin.Recovery())
this.initCb()
}

View File

@ -9,6 +9,7 @@ import (
var modules [constant.MAX_MODULE_IDX]q5.Module
var initOrders = []int32 {
constant.ROUTER_MODULE_IDX,
}
var app common.App
@ -25,6 +26,9 @@ func RegModule(idx int32, m q5.Module) {
{
app = m.(common.App)
}
case constant.ROUTER_MODULE_IDX:
{
}
default:
{
panic("unknow module")

View File

@ -1,12 +1,16 @@
package router
import (
"f5"
)
type routerMgr struct {
}
func (this* routerMgr) Init() {
f5.GetSysLog().Info("routerMgr.init")
}
func (this* routerMgr) UnInit() {