This commit is contained in:
aozhiwei 2020-10-29 12:12:25 +08:00
parent c5b71f4514
commit b6448cd923

View File

@ -22,7 +22,7 @@ func (this *HttpServer) Init(serviceName string, logOutputTime int32) *HttpServe
this.handlers = make(map[string]func(http.ResponseWriter, *http.Request))
http.HandleFunc("/webapp/index.php", this.dispatchRequest)
this.RegisterHandle("Ops", "selfChecking", func (w http.ResponseWriter,r *http.Request) {
w.Write([]byte(`{"errcode":0, "errmsg":"", "health":1, "max_rundelay": 10}`))
w.Write([]byte(`{"errcode":0, "errmsg":"", "healthy":1, "max_rundelay":10}`))
})
SysLog().Info("HttpServer.Init")
if logOutputTime > 0 {