MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / createDiagnosticHandler

Function createDiagnosticHandler

rest/routing.go:357–360  ·  view source on GitHub ↗

createDiagnosticHandler Creates the HTTP handler for the diagnostic API of a gateway server.

(sc *ServerContext)

Source from the content-addressed store, hash-verified

355
356// createDiagnosticHandler Creates the HTTP handler for the diagnostic API of a gateway server.
357func 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.
363func NewRouter(sc *ServerContext, serverType serverType) *mux.Router {

Callers 2

StartServerFunction · 0.85
TestDiagnosticHandlerMethod · 0.85

Calls 2

createDiagnosticRouterFunction · 0.85
wrapRouterFunction · 0.85

Tested by

no test coverage detected