1
0
mirror of https://github.com/astaxie/beego.git synced 2025-06-14 19:00:39 +00:00

Rewrite admin service by using multiple server feature

This commit is contained in:
Ming Deng
2020-09-10 22:17:15 +08:00
parent d455805a0a
commit 2473e69417
6 changed files with 421 additions and 378 deletions

View File

@ -17,6 +17,7 @@ package adapter
import (
"time"
_ "github.com/astaxie/beego/pkg/infrastructure/governor"
"github.com/astaxie/beego/pkg/server/web"
)
@ -38,11 +39,7 @@ import (
// beego.FilterMonitorFunc = MyFilterMonitor.
var FilterMonitorFunc func(string, string, time.Duration, string, int) bool
func init() {
FilterMonitorFunc = web.FilterMonitorFunc
}
// PrintTree prints all registered routers.
func PrintTree() M {
return (M)(web.PrintTree())
return (M)(web.BeeApp.PrintTree())
}