Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartSrvWithGracefulShutdown ¶
func StartSrvWithGracefulShutdown(ctx context.Context, srv *http.Server, graceShutdownTime int) (err error)
StartSrvWithGracefulShutdown start the incoming http.Server with goroutine and listen for shutdown signals to achieve elegant exit.
It will block the caller to enable listening and processing of the shutdown signal.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.