Documentation
¶
Index ¶
- Constants
- Variables
- func Middleware(store Store) func(next http.Handler) http.Handler
- func RemoveSIDCookie(w http.ResponseWriter, secure bool)
- func ResetSession(r *http.Request, w http.ResponseWriter)
- func WriteSIDCookie(w http.ResponseWriter, sid string, expiration time.Duration, secure bool)
- type Session
- type Store
Constants ¶
View Source
const CookieName = "sid"
Variables ¶
View Source
var (
ErrNoSession = errNs.NewType("no_session").New("session not found")
)
Functions ¶
func RemoveSIDCookie ¶
func RemoveSIDCookie(w http.ResponseWriter, secure bool)
func ResetSession ¶
func ResetSession(r *http.Request, w http.ResponseWriter)
func WriteSIDCookie ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.