Documentation ¶
Index ¶
- Variables
- func GetCurrentUserName(r *http.Request) string
- func GetFlashMessage(w http.ResponseWriter, r *http.Request, name string) string
- func GetMessage(w http.ResponseWriter, r *http.Request) ([]byte, error)
- func HasFlash(r *http.Request) bool
- func SetFlashMessage(w http.ResponseWriter, r *http.Request, name string, value string)
- func SetMessage(w http.ResponseWriter, msg string)
Constants ¶
This section is empty.
Variables ¶
View Source
var Store = sessions.NewCookieStore([]byte("secret-password"))
Store cookie storage
Functions ¶
func GetCurrentUserName ¶
GetCurrentUserName returns the username of the logged in user
func GetFlashMessage ¶
GetFlashMessage get flash msg from session
func GetMessage ¶
GetMessage get message
func SetFlashMessage ¶
SetFlashMessage set flash msg
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.