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
  7fdf432e_9352_4ab4_5e27_148fe460797b["Config"]
  9d301c16_2722_860d_b1fe_a422926499ab["config.go"]
  7fdf432e_9352_4ab4_5e27_148fe460797b -->|defined in| 9d301c16_2722_860d_b1fe_a422926499ab
  style 7fdf432e_9352_4ab4_5e27_148fe460797b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

middleware/etag/config.go lines 8–22

type Config struct {
	// Next defines a function to skip this middleware when returned true.
	//
	// Optional. Default: nil
	Next func(c fiber.Ctx) bool
	// Weak indicates that a weak validator is used. Weak etags are easy
	// to generate, but are far less useful for comparisons. Strong
	// validators are ideal for comparisons but can be very difficult
	// to generate efficiently. Weak ETag values of two representations
	// of the same resources might be semantically equivalent, but not
	// byte-for-byte identical. This means weak etags prevent caching
	// when byte range requests are used, but strong etags mean range
	// requests can still be cached.
	Weak bool
}

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free