config.go — fiber Source File
Architecture documentation for config.go, a go file in the fiber codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR c9822533_1d37_d500_60b1_cb37315dfe6b["config.go"] 6604ba6b_bab7_17c7_e687_7d0f07080e5a["v3"] c9822533_1d37_d500_60b1_cb37315dfe6b --> 6604ba6b_bab7_17c7_e687_7d0f07080e5a style c9822533_1d37_d500_60b1_cb37315dfe6b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
package pprof
import (
"github.com/gofiber/fiber/v3"
)
// Config defines the config for middleware.
type Config struct {
// Next defines a function to skip this middleware when returned true.
//
// Optional. Default: nil
Next func(c fiber.Ctx) bool
// Prefix defines a URL prefix added before "/debug/pprof".
// Note that it should start with (but not end with) a slash.
// Example: "/federated-fiber"
//
// Optional. Default: ""
Prefix string
}
var ConfigDefault = Config{
Next: nil,
Prefix: "",
}
func configDefault(config ...Config) Config {
// Return default config if nothing provided
if len(config) < 1 {
return ConfigDefault
}
// Override default config
cfg := config[0]
// Set default values
if cfg.Next == nil {
cfg.Next = ConfigDefault.Next
}
if cfg.Prefix == "" {
cfg.Prefix = ConfigDefault.Prefix
}
return cfg
}
Domain
Subdomains
Functions
Classes
Types
Dependencies
- v3
Source
Frequently Asked Questions
What does config.go do?
config.go is a source file in the fiber codebase, written in go. It belongs to the FiberCore domain, Adapters subdomain.
What functions are defined in config.go?
config.go defines 2 function(s): bool, configDefault.
What does config.go depend on?
config.go imports 1 module(s): v3.
Where is config.go in the architecture?
config.go is located at middleware/pprof/config.go (domain: FiberCore, subdomain: Adapters, directory: middleware/pprof).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free