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

Method OnPreStartupMessage

hooks.go:283–287  ·  view source on GitHub ↗

OnPreStartupMessage is a hook to execute user functions before the startup message is printed.

(handler ...OnPreStartupMessageHandler)

Source from the content-addressed store, hash-verified

281
282// OnPreStartupMessage is a hook to execute user functions before the startup message is printed.
283func (h *Hooks) OnPreStartupMessage(handler ...OnPreStartupMessageHandler) {
284 h.app.mutex.Lock()
285 h.onPreStartup = append(h.onPreStartup, handler...)
286 h.app.mutex.Unlock()
287}
288
289// OnPostStartupMessage is a hook to execute user functions after the startup message is printed (or skipped).
290func (h *Hooks) OnPostStartupMessage(handler ...OnPostStartupMessageHandler) {

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65