Home / Type/ Time Type — fiber Architecture

Time Type — fiber Architecture

Architecture documentation for the Time type/interface in res.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  092a1955_3f70_b61e_c210_004a22c25501["Time"]
  4ab93de8_955a_4087_8264_32cf8000452f["res.go"]
  092a1955_3f70_b61e_c210_004a22c25501 -->|defined in| 4ab93de8_955a_4087_8264_32cf8000452f
  style 092a1955_3f70_b61e_c210_004a22c25501 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

res.go lines 106–118

type Cookie struct {
	Expires     time.Time `json:"expires"`      // The expiration date of the cookie
	Name        string    `json:"name"`         // The name of the cookie
	Value       string    `json:"value"`        // The value of the cookie
	Path        string    `json:"path"`         // Specifies a URL path which is allowed to receive the cookie
	Domain      string    `json:"domain"`       // Specifies the domain which is allowed to receive the cookie
	SameSite    string    `json:"same_site"`    // Controls whether or not a cookie is sent with cross-site requests
	MaxAge      int       `json:"max_age"`      // The maximum age (in seconds) of the cookie
	Secure      bool      `json:"secure"`       // Indicates that the cookie should only be transmitted over a secure HTTPS connection
	HTTPOnly    bool      `json:"http_only"`    // Indicates that the cookie is accessible only through the HTTP protocol
	Partitioned bool      `json:"partitioned"`  // Indicates if the cookie is stored in a partitioned cookie jar
	SessionOnly bool      `json:"session_only"` // Indicates if the cookie is a session-only cookie
}

Defined In

Frequently Asked Questions

What is the Time type?
Time is a type/interface in the fiber codebase, defined in res.go.
Where is Time defined?
Time is defined in res.go at line 106.

Analyze Your Own Codebase

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

Try Supermodel Free