mirror of
https://gitee.com/johng/gf
synced 2026-06-06 02:25:47 +08:00
comment update for admin controller of package ghttp
This commit is contained in:
@ -7,12 +7,6 @@ import (
|
||||
func main() {
|
||||
s := g.Server()
|
||||
s.EnableAdmin()
|
||||
|
||||
//s.BindHookHandler("/admin/*any", ghttp.HOOK_BEFORE_SERVE, func(r *ghttp.Request) {
|
||||
// if !r.BasicAuth("admin", "123", "") {
|
||||
// r.Exit()
|
||||
// }
|
||||
//})
|
||||
s.SetPort(8199)
|
||||
s.Run()
|
||||
}
|
||||
|
||||
@ -251,7 +251,8 @@ func forceCloseWebServers() {
|
||||
})
|
||||
}
|
||||
|
||||
// handleProcessMessage listens the signal from system.
|
||||
// handleProcessMessage receives and handles the message from processes,
|
||||
// which are commonly used for graceful reloading feature.
|
||||
func handleProcessMessage() {
|
||||
for {
|
||||
if msg := gproc.Receive(gADMIN_GPROC_COMM_GROUP); msg != nil {
|
||||
|
||||
Reference in New Issue
Block a user