Documentation
¶
Overview ¶
Package traefik_session_max_age is a plugin for the Traefik reverse proxy that sets cookie's max-age
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { CookieName string `json:"cookieName,omitempty"` MaxAge int `json:"maxAge,omitempty"` }
Config the plugin configuration.
func CreateConfig ¶
func CreateConfig() *Config
CreateConfig creates the default plugin configuration.
type SessionMaxAge ¶
type SessionMaxAge struct {
// contains filtered or unexported fields
}
SessionMaxAge is a middleware for traefik middlware plugin to set cookie max age.
func (*SessionMaxAge) ServeHTTP ¶
func (a *SessionMaxAge) ServeHTTP(rw http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.