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

Function CreateAdminHandler

rest/routing.go:140–143  ·  view source on GitHub ↗

ADMIN API: CreateAdminHandler Creates the HTTP handler for the PRIVATE admin API of a gateway server.

(sc *ServerContext)

Source from the content-addressed store, hash-verified

138
139// CreateAdminHandler Creates the HTTP handler for the PRIVATE admin API of a gateway server.
140func CreateAdminHandler(sc *ServerContext) http.Handler {
141 router := CreateAdminRouter(sc)
142 return wrapRouter(sc, adminPrivs, adminServer, router)
143}
144
145// CreateAdminRouter Creates the HTTP handler for the PRIVATE admin API of a gateway server.
146func CreateAdminRouter(sc *ServerContext) *mux.Router {

Callers 2

StartServerFunction · 0.85
TestAdminHandlerMethod · 0.85

Calls 2

CreateAdminRouterFunction · 0.85
wrapRouterFunction · 0.85

Tested by

no test coverage detected