config.go — fiber Source File
Architecture documentation for config.go, a go file in the fiber codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR d572008a_5dff_19e7_6745_d55c1cebd3d0["config.go"] d31b53b2_3d0c_f538_f920_e1ae643c437c["time"] d572008a_5dff_19e7_6745_d55c1cebd3d0 --> d31b53b2_3d0c_f538_f920_e1ae643c437c style d572008a_5dff_19e7_6745_d55c1cebd3d0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
package session
import (
"time"
"github.com/gofiber/fiber/v3"
"github.com/gofiber/fiber/v3/extractors"
"github.com/gofiber/fiber/v3/log"
"github.com/gofiber/utils/v2"
)
// Config defines the configuration for the session middleware.
type Config struct {
// Storage interface for storing session data.
//
// Optional. Default: memory.New()
Storage fiber.Storage
// Store defines the session store.
//
// Required.
Store *Store
// Next defines a function to skip this middleware when it returns true.
// Optional. Default: nil
Next func(c fiber.Ctx) bool
// ErrorHandler defines a function to handle errors.
//
// Optional. Default: nil
ErrorHandler func(fiber.Ctx, error)
// KeyGenerator generates the session key.
//
// Optional. Default: utils.SecureToken
KeyGenerator func() string
// CookieDomain defines the domain of the session cookie.
//
// Optional. Default: ""
CookieDomain string
// CookiePath defines the path of the session cookie.
//
// Optional. Default: ""
CookiePath string
// CookieSameSite specifies the SameSite attribute of the cookie.
//
// Optional. Default: "Lax"
CookieSameSite string
// Extractor is used to extract the session ID from the request.
// See: https://docs.gofiber.io/guide/extractors
//
// Optional. Default: extractors.FromCookie("session_id")
Extractor extractors.Extractor
// IdleTimeout defines the maximum duration of inactivity before the session expires.
//
// ... (105 more lines)
Domain
Subdomains
Classes
Types
Dependencies
- time
Source
Frequently Asked Questions
What does config.go do?
config.go is a source file in the fiber codebase, written in go. It belongs to the FiberMiddleware domain, Session subdomain.
What functions are defined in config.go?
config.go defines 5 function(s): Ctx, DefaultErrorHandler, bool, configDefault, string.
What does config.go depend on?
config.go imports 1 module(s): time.
Where is config.go in the architecture?
config.go is located at middleware/session/config.go (domain: FiberMiddleware, subdomain: Session, directory: middleware/session).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free