Documentation
¶
Index ¶
- Constants
- func ClearSession(w http.ResponseWriter)
- func ClearSessionWithOptions(w http.ResponseWriter, options CookieOptions)
- func ParseSession(r *http.Request, secret string) (int64, bool)
- func ParseSessionWithOptions(r *http.Request, secret string, options CookieOptions) (int64, bool)
- func SetSession(w http.ResponseWriter, secret string, uid int64)
- func SetSessionWithOptions(w http.ResponseWriter, secret string, uid int64, options CookieOptions)
- func SetVersionedSessionWithOptions(w http.ResponseWriter, secret string, uid int64, version string, ...)
- type CookieOptions
- type Session
Constants ¶
View Source
const CookieName = "gopherink_session"
Variables ¶
This section is empty.
Functions ¶
func ClearSession ¶
func ClearSession(w http.ResponseWriter)
func ClearSessionWithOptions ¶
func ClearSessionWithOptions(w http.ResponseWriter, options CookieOptions)
func ParseSessionWithOptions ¶
func SetSession ¶
func SetSession(w http.ResponseWriter, secret string, uid int64)
func SetSessionWithOptions ¶
func SetSessionWithOptions(w http.ResponseWriter, secret string, uid int64, options CookieOptions)
func SetVersionedSessionWithOptions ¶
func SetVersionedSessionWithOptions(w http.ResponseWriter, secret string, uid int64, version string, options CookieOptions)
Types ¶
type CookieOptions ¶
func (CookieOptions) Name ¶
func (o CookieOptions) Name(base string) string
Click to show internal directories.
Click to hide internal directories.