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

Method OnPostShutdown

hooks.go:304–308  ·  view source on GitHub ↗

OnPostShutdown is a hook to execute user functions after Shutdown.

(handler ...OnPostShutdownHandler)

Source from the content-addressed store, hash-verified

302
303// OnPostShutdown is a hook to execute user functions after Shutdown.
304func (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.
311func (h *Hooks) OnFork(handler ...OnForkHandler) {

Callers 4

testGracefulShutdownFunction · 0.80
Test_Hook_OnPostShutdownFunction · 0.80
initMethod · 0.80

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by 3

testGracefulShutdownFunction · 0.64
Test_Hook_OnPostShutdownFunction · 0.64