(Not sure if this is examples problem or gins problem. )
Hey,
The graceful shutdown example provided in examples/graceful-shutdown does not use gin.Run() and instead calls the http.ListenAndServe() directly.
It looks like gin.Run() also does additional configurations on the engine before starting the server. These methods are private and implementing similar logic without copy/paste is not possible.
Problem: gin.Run() does not expose the server instance anywhere to be able to call Shutdown() on it.
Any ideas ?
(Not sure if this is examples problem or gins problem. )
Hey,
The graceful shutdown example provided in examples/graceful-shutdown does not use
gin.Run()and instead calls thehttp.ListenAndServe()directly.It looks like
gin.Run()also does additional configurations on the engine before starting the server. These methods are private and implementing similar logic without copy/paste is not possible.Problem:
gin.Run()does not expose the server instance anywhere to be able to callShutdown()on it.Any ideas ?