Home / Function/ contextWithMarker() — fiber Function Reference

contextWithMarker() — fiber Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  2018faac_33e1_3614_02e8_25e358c08098["contextWithMarker()"]
  8453a087_9678_fe96_1b20_2d125b6f8656["cache_test.go"]
  2018faac_33e1_3614_02e8_25e358c08098 -->|defined in| 8453a087_9678_fe96_1b20_2d125b6f8656
  7de6ac74_535e_b3de_5e3a_aab85ae3edca["canceledContextWithMarker()"]
  7de6ac74_535e_b3de_5e3a_aab85ae3edca -->|calls| 2018faac_33e1_3614_02e8_25e358c08098
  91805460_0832_eea8_078a_68361793a0d5["TestCacheEvictionPropagatesRequestContextToDelete()"]
  91805460_0832_eea8_078a_68361793a0d5 -->|calls| 2018faac_33e1_3614_02e8_25e358c08098
  fd2bca04_19f0_1e38_9da6_7edbe8446cf4["TestCacheStorageOperationsObserveRequestContext()"]
  fd2bca04_19f0_1e38_9da6_7edbe8446cf4 -->|calls| 2018faac_33e1_3614_02e8_25e358c08098
  style 2018faac_33e1_3614_02e8_25e358c08098 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

middleware/cache/cache_test.go lines 315–317

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/cache/cache_test.go.
Where is contextWithMarker() defined?
contextWithMarker() is defined in middleware/cache/cache_test.go at line 315.
What calls contextWithMarker()?
contextWithMarker() is called by 3 function(s): TestCacheEvictionPropagatesRequestContextToDelete, TestCacheStorageOperationsObserveRequestContext, canceledContextWithMarker.

Analyze Your Own Codebase

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

Try Supermodel Free