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

Method addHTTPServer

rest/server_context.go:240–244  ·  view source on GitHub ↗
(t serverType, s *serverInfo)

Source from the content-addressed store, hash-verified

238}
239
240func (sc *ServerContext) addHTTPServer(t serverType, s *serverInfo) {
241 sc._httpServersLock.Lock()
242 defer sc._httpServersLock.Unlock()
243 sc._httpServers[t] = s
244}
245
246// getHTTPServer returns information about the given HTTP server.
247func (sc *ServerContext) getHTTPServer(t serverType) (*serverInfo, error) {

Callers 5

ServeMethod · 0.95
TestAdminHandlerMethod · 0.80
TestPublicHandlerMethod · 0.80
TestMetricsHandlerMethod · 0.80
TestDiagnosticHandlerMethod · 0.80

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected