MCPcopy
hub / github.com/gofiber/fiber / OnPostStartupMessage

Method OnPostStartupMessage

hooks.go:290–294  ·  view source on GitHub ↗

OnPostStartupMessage is a hook to execute user functions after the startup message is printed (or skipped).

(handler ...OnPostStartupMessageHandler)

Source from the content-addressed store, hash-verified

288
289// OnPostStartupMessage is a hook to execute user functions after the startup message is printed (or skipped).
290func (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.
297func (h *Hooks) OnPreShutdown(handler ...OnPreShutdownHandler) {

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65