1
This commit is contained in:
parent
c5b71f4514
commit
b6448cd923
@ -22,7 +22,7 @@ func (this *HttpServer) Init(serviceName string, logOutputTime int32) *HttpServe
|
|||||||
this.handlers = make(map[string]func(http.ResponseWriter, *http.Request))
|
this.handlers = make(map[string]func(http.ResponseWriter, *http.Request))
|
||||||
http.HandleFunc("/webapp/index.php", this.dispatchRequest)
|
http.HandleFunc("/webapp/index.php", this.dispatchRequest)
|
||||||
this.RegisterHandle("Ops", "selfChecking", func (w http.ResponseWriter,r *http.Request) {
|
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")
|
SysLog().Info("HttpServer.Init")
|
||||||
if logOutputTime > 0 {
|
if logOutputTime > 0 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user