query server information
(ctx Context)
| 90 | |
| 91 | // query server information |
| 92 | func showQuery(ctx Context) error { |
| 93 | querykey := ctx.GetRouterName("key") |
| 94 | switch querykey { |
| 95 | case "state": |
| 96 | return ctx.WriteString(jsonutil.GetJsonString(ctx.HttpServer().StateInfo())) |
| 97 | case "": |
| 98 | return ctx.WriteString("please input key") |
| 99 | default: |
| 100 | return ctx.WriteString("not support key => " + querykey) |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | func showRouters(ctx Context) error { |
| 105 | data := "" |
nothing calls this directly
no test coverage detected