Home / Type/ Ctx Type — fiber Architecture

Ctx Type — fiber Architecture

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

Entity Profile

Dependency Diagram

graph TD
  34c72556_631c_8187_5d08_4a38bc460691["Ctx"]
  c109343c_0648_ab9d_92d7_bec27908972f["config.go"]
  34c72556_631c_8187_5d08_4a38bc460691 -->|defined in| c109343c_0648_ab9d_92d7_bec27908972f
  style 34c72556_631c_8187_5d08_4a38bc460691 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

middleware/healthcheck/config.go lines 8–21

type Config struct {
	// Next defines a function to skip this middleware when returned true. If this function returns true
	// and no other handlers are defined for the route, Fiber will return a status 404 Not Found, since
	// no other handlers were defined to return a different status.
	//
	// Optional. Default: nil
	Next func(fiber.Ctx) bool

	// Probe is executed to determine the current health state. It can be used for liveness,
	// readiness or startup checks. Returning true indicates the application is healthy.
	//
	// Optional. Default: func(c fiber.Ctx) bool { return true }
	Probe func(fiber.Ctx) bool
}

Frequently Asked Questions

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