newHooks() — fiber Function Reference
Architecture documentation for the newHooks() function in hooks.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 1d68c602_8841_f2e5_a093_04e7f0d19d34["newHooks()"] 12bfb898_b1c5_c958_dabc_608c81f56f8f["hooks.go"] 1d68c602_8841_f2e5_a093_04e7f0d19d34 -->|defined in| 12bfb898_b1c5_c958_dabc_608c81f56f8f style 1d68c602_8841_f2e5_a093_04e7f0d19d34 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
hooks.go lines 222–237
func newHooks(app *App) *Hooks {
return &Hooks{
app: app,
onRoute: make([]OnRouteHandler, 0),
onGroup: make([]OnGroupHandler, 0),
onGroupName: make([]OnGroupNameHandler, 0),
onName: make([]OnNameHandler, 0),
onListen: make([]OnListenHandler, 0),
onPreStartup: make([]OnPreStartupMessageHandler, 0),
onPostStartup: make([]OnPostStartupMessageHandler, 0),
onPreShutdown: make([]OnPreShutdownHandler, 0),
onPostShutdown: make([]OnPostShutdownHandler, 0),
onFork: make([]OnForkHandler, 0),
onMount: make([]OnMountHandler, 0),
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does newHooks() do?
newHooks() is a function in the fiber codebase, defined in hooks.go.
Where is newHooks() defined?
newHooks() is defined in hooks.go at line 222.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free