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

Method startupProcess

app.go:1654–1669  ·  app.go::App.startupProcess

startupProcess Is the method which executes all the necessary processes just before the start of the server.

()

Source from the content-addressed store, hash-verified

1652
1653// startupProcess Is the method which executes all the necessary processes just before the start of the server.
1654func (app *App) startupProcess() {
1655 app.mutex.Lock()
1656 defer app.mutex.Unlock()
1657
1658 app.ensureAutoHeadRoutesLocked()
1659 for prefix, subApp := range app.mountFields.appList {
1660 if prefix == "" {
1661 continue
1662 }
1663 subApp.ensureAutoHeadRoutes()
1664 }
1665 app.mountStartupProcess()
1666
1667 // build route tree stack
1668 app.buildTree()
1669}
1670
1671// Run onListen hooks. If they return an error, panic.
1672func (app *App) runOnListenHooks(listenData *ListenData) {

Callers 15

preforkMethod · 0.95
ListenMethod · 0.95
ListenerMethod · 0.95
HandlerMethod · 0.95
TestMethod · 0.95
Test_App_StackFunction · 0.80
Test_App_HandlersCountFunction · 0.80
TestRemoveRouteFunction · 0.80

Calls 6

mountStartupProcessMethod · 0.95
buildTreeMethod · 0.95
ensureAutoHeadRoutesMethod · 0.80
LockMethod · 0.65
UnlockMethod · 0.65