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

Method servicesStartupCtx

services.go:61–67  ·  view source on GitHub ↗

servicesStartupCtx Returns the context for the services startup. If the ServicesStartupContextProvider is not set, it returns a new background context.

()

Source from the content-addressed store, hash-verified

59// servicesStartupCtx Returns the context for the services startup.
60// If the ServicesStartupContextProvider is not set, it returns a new background context.
61func (app *App) servicesStartupCtx() context.Context {
62 if app.configured.ServicesStartupContextProvider != nil {
63 return app.configured.ServicesStartupContextProvider()
64 }
65
66 return context.Background()
67}
68
69// servicesShutdownCtx Returns the context for the services shutdown.
70// If the ServicesShutdownContextProvider is not set, it returns a new background context.

Callers 3

startupMessageMethod · 0.95
initServicesMethod · 0.95

Calls

no outgoing calls

Tested by 1