Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListenAndServe ¶
func WaitForShutdown ¶
func WaitForShutdown(server *http.Server, handlers ...AfterCloseHandler)
WaitForShutdown 监听linux信号,收到信号,停止服务
Types ¶
type AfterCloseHandler ¶
type AfterCloseHandler func()
Click to show internal directories.
Click to hide internal directories.