Shutdown gracefully shuts down the server without interrupting any active connections. If the provided context expires before the shutdown is complete, Shutdown returns the context's error, otherwise it returns any error returned from closing the Server's underlying Listener(s).
(ctx context.Context)
| 39 | // otherwise it returns any error returned from closing the Server's |
| 40 | // underlying Listener(s). |
| 41 | Shutdown(ctx context.Context) error |
| 42 | } |
| 43 | |
| 44 | // TLSServer is an optional interface for Server drivers, that adds support |
no outgoing calls