Home / Function/ setFiberContextValueMiddleware() — fiber Function Reference

setFiberContextValueMiddleware() — fiber Function Reference

Architecture documentation for the setFiberContextValueMiddleware() function in adaptor_test.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  1fb74a15_ad44_9be8_6f0d_226181223e63["setFiberContextValueMiddleware()"]
  8ec96b38_44b4_af66_6f6f_dd60f87b680c["adaptor_test.go"]
  1fb74a15_ad44_9be8_6f0d_226181223e63 -->|defined in| 8ec96b38_44b4_af66_6f6f_dd60f87b680c
  e1608b1a_e6bf_240f_2b28_2729e1cf4698["Test_HTTPHandler()"]
  e1608b1a_e6bf_240f_2b28_2729e1cf4698 -->|calls| 1fb74a15_ad44_9be8_6f0d_226181223e63
  ce8ee17d_c54e_46e1_592a_1f9f421eab8c["Test_HTTPHandler_Flush()"]
  ce8ee17d_c54e_46e1_592a_1f9f421eab8c -->|calls| 1fb74a15_ad44_9be8_6f0d_226181223e63
  style 1fb74a15_ad44_9be8_6f0d_226181223e63 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

middleware/adaptor/adaptor_test.go lines 655–660

func setFiberContextValueMiddleware(next fiber.Handler, key, value any) fiber.Handler {
	return func(c fiber.Ctx) error {
		c.Locals(key, value)
		return next(c)
	}
}

Domain

Subdomains

Frequently Asked Questions

What does setFiberContextValueMiddleware() do?
setFiberContextValueMiddleware() is a function in the fiber codebase, defined in middleware/adaptor/adaptor_test.go.
Where is setFiberContextValueMiddleware() defined?
setFiberContextValueMiddleware() is defined in middleware/adaptor/adaptor_test.go at line 655.
What calls setFiberContextValueMiddleware()?
setFiberContextValueMiddleware() is called by 2 function(s): Test_HTTPHandler, Test_HTTPHandler_Flush.

Analyze Your Own Codebase

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

Try Supermodel Free