MCPcopy Index your code
hub / github.com/kopia/kopia / shutdownHTTPServer

Function shutdownHTTPServer

cli/command_server_start.go:312–318  ·  view source on GitHub ↗
(ctx context.Context, httpServer *http.Server)

Source from the content-addressed store, hash-verified

310}
311
312func shutdownHTTPServer(ctx context.Context, httpServer *http.Server) {
313 log(ctx).Info("Shutting down HTTP server ...")
314
315 if err := httpServer.Shutdown(ctx); err != nil {
316 log(ctx).Errorln("unable to shut down HTTP server:", err)
317 }
318}
319
320func (c *commandServerStart) setupHandlers(srv *server.Server, m *mux.Router) {
321 if c.serverStartControlAPI {

Callers 1

runMethod · 0.85

Calls 2

InfoMethod · 0.80
ShutdownMethod · 0.80

Tested by

no test coverage detected