Home / Type/ Group Type — fiber Architecture

Group Type — fiber Architecture

Architecture documentation for the Group type/interface in router.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  ab230a1b_8389_8c3d_2b2a_7443e8688d9c["Group"]
  48efdb11_7716_7309_0a63_433f767560eb["router.go"]
  ab230a1b_8389_8c3d_2b2a_7443e8688d9c -->|defined in| 48efdb11_7716_7309_0a63_433f767560eb
  style ab230a1b_8389_8c3d_2b2a_7443e8688d9c 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

Frequently Asked Questions

What is the Group type?
Group is a type/interface in the fiber codebase, defined in router.go.
Where is Group defined?
Group 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