Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultCookieName = "GOSESSION"
View Source
const DefaultIPStrict = false
View Source
const DefaultTTL = 24 * time.Hour
Variables ¶
View Source
var DefaultCookie = http.Cookie{ Name: DefaultCookieName, MaxAge: int(DefaultTTL.Seconds()), Path: "/", }
View Source
var ErrorEmptyManager = fmt.Errorf("Empty manager")
Functions ¶
Types ¶
type Middleware ¶
type Middleware struct {
// contains filtered or unexported fields
}
func (*Middleware) ServeHTTP ¶
func (m *Middleware) ServeHTTP(w http.ResponseWriter, r *http.Request)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.