App Type — fiber Architecture
Architecture documentation for the App type/interface in app.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 3a33f52a_6c7d_5afe_46bd_e77f2afd2c34["App"] 258982c0_9752_bf98_01ce_836d4de563e1["app.go"] 3a33f52a_6c7d_5afe_46bd_e77f2afd2c34 -->|defined in| 258982c0_9752_bf98_01ce_836d4de563e1 style 3a33f52a_6c7d_5afe_46bd_e77f2afd2c34 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
app.go lines 68–112
type App struct {
// App config
config Config
// Indicates if the value was explicitly configured
configured Config
// Ctx pool
pool sync.Pool
// Fasthttp server
server *fasthttp.Server
// Converts string to a byte slice
toBytes func(s string) (b []byte)
// Converts byte slice to a string
toString func(b []byte) string
// Hooks
hooks *Hooks
// Latest route & group
latestRoute *Route
// newCtxFunc
newCtxFunc func(app *App) CustomCtx
// TLS handler
tlsHandler *TLSHandler
// Mount fields
mountFields *mountFields
// state management
state *State
// Route stack divided by HTTP methods
stack [][]*Route
// customConstraints is a list of external constraints
customConstraints []CustomConstraint
// sendfiles stores configurations for handling ctx.SendFile operations
sendfiles []*sendFileStore
// custom binders
customBinders []CustomBinder
// Route stack divided by HTTP methods and route prefixes
treeStack []map[int][]*Route
// sendfilesMutex is a mutex used for sendfile operations
sendfilesMutex sync.RWMutex
mutex sync.Mutex
// Amount of registered handlers
handlersCount uint32
// contains the information if the route stack has been changed to build the optimized tree
routesRefreshed bool
// hasCustomCtx tracks whether app uses a custom context implementation
hasCustomCtx bool
}
Defined In
Source
Frequently Asked Questions
What is the App type?
App is a type/interface in the fiber codebase, defined in app.go.
Where is App defined?
App is defined in app.go at line 68.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free