OnPostShutdown is a hook to execute user functions after Shutdown.
(handler ...OnPostShutdownHandler)
| 302 | |
| 303 | // OnPostShutdown is a hook to execute user functions after Shutdown. |
| 304 | func (h *Hooks) OnPostShutdown(handler ...OnPostShutdownHandler) { |
| 305 | h.app.mutex.Lock() |
| 306 | h.onPostShutdown = append(h.onPostShutdown, handler...) |
| 307 | h.app.mutex.Unlock() |
| 308 | } |
| 309 | |
| 310 | // OnFork is a hook to execute user function after fork process. |
| 311 | func (h *Hooks) OnFork(handler ...OnForkHandler) { |