Home / Type/ item Type — fiber Architecture

item Type — fiber Architecture

Architecture documentation for the item type/interface in manager.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  7881e2d9_52ea_8008_4ed6_f94699727763["item"]
  5f61d399_7b5a_6a35_411a_ef0a25ea52d4["manager.go"]
  7881e2d9_52ea_8008_4ed6_f94699727763 -->|defined in| 5f61d399_7b5a_6a35_411a_ef0a25ea52d4
  style 7881e2d9_52ea_8008_4ed6_f94699727763 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

middleware/cache/manager.go lines 19–38

type item struct {
	headers         []cachedHeader `msg:",limit=1024"` // Typical HTTP header count stays well below this.
	body            []byte         // Cache bodies are bounded by storage policy, not msgp limits.
	ctype           []byte         `msg:",limit=256"`  // Content-Type values are short per RFCs.
	cencoding       []byte         `msg:",limit=128"`  // Content-Encoding is typically a short token.
	cacheControl    []byte         `msg:",limit=2048"` // Cache-Control directives are bounded.
	expires         []byte         `msg:",limit=128"`  // Expires is a short HTTP-date string.
	etag            []byte         `msg:",limit=256"`  // ETags are small tokens/quoted strings.
	date            uint64
	status          int
	age             uint64
	exp             uint64
	ttl             uint64
	forceRevalidate bool
	revalidate      bool
	shareable       bool
	private         bool
	// used for finding the item in an indexed heap
	heapidx int
}

Frequently Asked Questions

What is the item type?
item is a type/interface in the fiber codebase, defined in middleware/cache/manager.go.
Where is item defined?
item is defined in middleware/cache/manager.go at line 19.

Analyze Your Own Codebase

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

Try Supermodel Free