Shutdown gracefully shuts down the server and releases resources.
(ctx context.Context)
| 66 | |
| 67 | // Shutdown gracefully shuts down the server and releases resources. |
| 68 | func (s *Server) Shutdown(ctx context.Context) error { |
| 69 | if s.server == nil { |
| 70 | return nil |
| 71 | } |
| 72 | return s.server.Shutdown(ctx) |
| 73 | } |
| 74 | |
| 75 | // runHTTP starts the server in http mode, without TLS. |
| 76 | func (s *Server) runHTTP() error { |
no outgoing calls