Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CSRF ¶
type CSRF struct { TokenLength int // default: 32 TokenLookup string // default: X-CSRF-Token (header/form field) AllowForm bool CookieName string // default: _csrf CookieDomain string CookiePath string // default: / CookieMaxAge int // default: 86400 (1 day) CookieSecure bool CookieSameSite http.SameSite CookieHTTPOnly bool }
CSRF middleware
type Cache ¶
type Cache struct { MaxAge time.Duration // 0 - unlimit Key func(*http.Request) string // optional // contains filtered or unexported fields }
Cache middleware for "GET 200"
func (*Cache) InvalidateAll ¶ added in v1.72.14
func (cache *Cache) InvalidateAll()
InvalidateAll cache
func (*Cache) InvalidateByKey ¶ added in v1.72.14
InvalidateByKey cache
Click to show internal directories.
Click to hide internal directories.