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

Method executeOnPreShutdownHooks

hooks.go:430–436  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

428}
429
430func (h *Hooks) executeOnPreShutdownHooks() {
431 for _, v := range h.onPreShutdown {
432 if err := v(); err != nil {
433 log.Errorf("failed to call pre shutdown hook: %v", err)
434 }
435 }
436}
437
438func (h *Hooks) executeOnPostShutdownHooks(err error) {
439 for _, v := range h.onPostShutdown {

Callers

nothing calls this directly

Calls 1

ErrorfFunction · 0.92

Tested by 1