Home / Type/ Session Type — fiber Architecture

Session Type — fiber Architecture

Architecture documentation for the Session type/interface in session.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  7191a819_e231_ff59_3af0_2192e9d5eb88["Session"]
  747a200a_0b32_8d25_d7f7_852a23349c06["session.go"]
  7191a819_e231_ff59_3af0_2192e9d5eb88 -->|defined in| 747a200a_0b32_8d25_d7f7_852a23349c06
  style 7191a819_e231_ff59_3af0_2192e9d5eb88 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

middleware/session/session.go lines 18–26

type Session struct {
	ctx         fiber.Ctx     // fiber context
	config      *Store        // store configuration
	data        *data         // key value data
	id          string        // session id
	idleTimeout time.Duration // idleTimeout of this session
	mu          sync.RWMutex  // Mutex to protect non-data fields
	fresh       bool          // if new session
}

Frequently Asked Questions

What is the Session type?
Session is a type/interface in the fiber codebase, defined in middleware/session/session.go.
Where is Session defined?
Session is defined in middleware/session/session.go at line 18.

Analyze Your Own Codebase

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

Try Supermodel Free