Home / Type/ Config Type — fiber Architecture

Config Type — fiber Architecture

Architecture documentation for the Config type/interface in config.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  43ae58b9_f956_9363_df6d_4c90b59c2b07["Config"]
  af2ea67e_4a3c_5176_5352_871e7f68d6c4["config.go"]
  43ae58b9_f956_9363_df6d_4c90b59c2b07 -->|defined in| af2ea67e_4a3c_5176_5352_871e7f68d6c4
  style 43ae58b9_f956_9363_df6d_4c90b59c2b07 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

middleware/requestid/config.go lines 9–24

type Config struct {
	// Next defines a function to skip this middleware when returned true.
	//
	// Optional. Default: nil
	Next func(c fiber.Ctx) bool

	// Generator defines a function to generate the unique identifier.
	//
	// Optional. Default: utils.SecureToken
	Generator func() string

	// Header is the header key where to get/set the unique request ID
	//
	// Optional. Default: "X-Request-ID"
	Header string
}

Frequently Asked Questions

What is the Config type?
Config is a type/interface in the fiber codebase, defined in middleware/requestid/config.go.
Where is Config defined?
Config is defined in middleware/requestid/config.go at line 9.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free