createDiagnosticHandler Creates the HTTP handler for the diagnostic API of a gateway server.
(sc *ServerContext)
| 355 | |
| 356 | // createDiagnosticHandler Creates the HTTP handler for the diagnostic API of a gateway server. |
| 357 | func createDiagnosticHandler(sc *ServerContext) http.Handler { |
| 358 | router := createDiagnosticRouter(sc) |
| 359 | return wrapRouter(sc, adminPrivs, diagnosticServer, router) |
| 360 | } |
| 361 | |
| 362 | // NewRouter returns a basic router for the given server type. |
| 363 | func NewRouter(sc *ServerContext, serverType serverType) *mux.Router { |
no test coverage detected