(ctx context.Context, httpServer *http.Server)
| 310 | } |
| 311 | |
| 312 | func 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 | |
| 320 | func (c *commandServerStart) setupHandlers(srv *server.Server, m *mux.Router) { |
| 321 | if c.serverStartControlAPI { |