func RegisterShutdownHook(h func()) {
	onShutdown.add(h)
}
RegisterShutdownHook add hook which is executed after the server shutdown.
package server
func RegisterStartHook(h func()) {
	onServerStart.add(h)
}