Route Type — fiber Architecture
Architecture documentation for the Route type/interface in router.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD c09b8941_5986_2460_2db0_42604d9e5d32["Route"] 48efdb11_7716_7309_0a63_433f767560eb["router.go"] c09b8941_5986_2460_2db0_42604d9e5d32 -->|defined in| 48efdb11_7716_7309_0a63_433f767560eb style c09b8941_5986_2460_2db0_42604d9e5d32 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
router.go lines 42–63
type Route struct {
// ### important: always keep in sync with the copy method "app.copyRoute" and all creations of Route struct ###
group *Group // Group instance. used for routes in groups
path string // Prettified path
// Public fields
Method string `json:"method"` // HTTP method
Name string `json:"name"` // Route's name
//nolint:revive // Having both a Path (uppercase) and a path (lowercase) is fine
Path string `json:"path"` // Original registered route path
Params []string `json:"params"` // Case-sensitive param keys
Handlers []Handler `json:"-"` // Ctx handlers
routeParser routeParser // Parameter parser
// Data for routing
use bool // USE matches path prefixes
mount bool // Indicated a mounted app on a specific route
star bool // Path equals '*'
root bool // Path equals '/'
autoHead bool // Automatically generated HEAD route
}
Defined In
Source
Frequently Asked Questions
What is the Route type?
Route is a type/interface in the fiber codebase, defined in router.go.
Where is Route defined?
Route is defined in router.go at line 42.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free