OnPostStartupMessage is a hook to execute user functions after the startup message is printed (or skipped).
(handler ...OnPostStartupMessageHandler)
| 288 | |
| 289 | // OnPostStartupMessage is a hook to execute user functions after the startup message is printed (or skipped). |
| 290 | func (h *Hooks) OnPostStartupMessage(handler ...OnPostStartupMessageHandler) { |
| 291 | h.app.mutex.Lock() |
| 292 | h.onPostStartup = append(h.onPostStartup, handler...) |
| 293 | h.app.mutex.Unlock() |
| 294 | } |
| 295 | |
| 296 | // OnPreShutdown is a hook to execute user functions before Shutdown. |
| 297 | func (h *Hooks) OnPreShutdown(handler ...OnPreShutdownHandler) { |