Home / Function/ contextWithMarker() — fiber Function Reference

contextWithMarker() — fiber Function Reference

Architecture documentation for the contextWithMarker() function in limiter_test.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  7f532e95_c67c_e1fb_201a_4523be5937f5["contextWithMarker()"]
  0509da96_221e_0d0d_fe2e_f2e2e3695b6f["limiter_test.go"]
  7f532e95_c67c_e1fb_201a_4523be5937f5 -->|defined in| 0509da96_221e_0d0d_fe2e_f2e2e3695b6f
  418b866d_b436_722f_b08d_9990bcc9fd7d["canceledContextWithMarker()"]
  418b866d_b436_722f_b08d_9990bcc9fd7d -->|calls| 7f532e95_c67c_e1fb_201a_4523be5937f5
  b4c4e898_37f6_b5aa_95ab_209eb58a3653["TestLimiterFixedPropagatesRequestContextToStorage()"]
  b4c4e898_37f6_b5aa_95ab_209eb58a3653 -->|calls| 7f532e95_c67c_e1fb_201a_4523be5937f5
  bb671d74_1b55_c7e1_5447_a449c0f633f1["TestLimiterSlidingPropagatesRequestContextToStorage()"]
  bb671d74_1b55_c7e1_5447_a449c0f633f1 -->|calls| 7f532e95_c67c_e1fb_201a_4523be5937f5
  style 7f532e95_c67c_e1fb_201a_4523be5937f5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

middleware/limiter/limiter_test.go lines 173–175

func contextWithMarker(label string) context.Context {
	return context.WithValue(context.Background(), markerKey, label)
}

Subdomains

Frequently Asked Questions

What does contextWithMarker() do?
contextWithMarker() is a function in the fiber codebase, defined in middleware/limiter/limiter_test.go.
Where is contextWithMarker() defined?
contextWithMarker() is defined in middleware/limiter/limiter_test.go at line 173.
What calls contextWithMarker()?
contextWithMarker() is called by 3 function(s): TestLimiterFixedPropagatesRequestContextToStorage, TestLimiterSlidingPropagatesRequestContextToStorage, canceledContextWithMarker.

Analyze Your Own Codebase

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

Try Supermodel Free