MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / Shutdown

Method Shutdown

server/server.go:78–85  ·  view source on GitHub ↗

Shutdown gracefully shuts down the server

(ctx context.Context)

Source from the content-addressed store, hash-verified

76
77// Shutdown gracefully shuts down the server
78func (s *Server) Shutdown(ctx context.Context) {
79 slog.Info("Shutting down the server...")
80
81 ctx, closeServer := context.WithTimeout(ctx, s.router.config.GracefulStopTimeout)
82 defer closeServer()
83
84 s.server.Shutdown(ctx)
85}

Callers 7

StartServerMethod · 0.80
runFunction · 0.80
TestMainFunction · 0.80
SetupSuiteMethod · 0.80
TestShutdownMethod · 0.80
StopMethod · 0.80
StopMethod · 0.80

Calls

no outgoing calls

Tested by 2

TestMainFunction · 0.64
TestShutdownMethod · 0.64