Documentation ¶
Index ¶
- Variables
- type Cookie
- func (c *Cookie) AddFlashDanger(w http.ResponseWriter, r *http.Request, msg string) error
- func (c *Cookie) AddFlashInfo(w http.ResponseWriter, r *http.Request, msg string) error
- func (c *Cookie) AddFlashSuccess(w http.ResponseWriter, r *http.Request, msg string) error
- func (c *Cookie) AddFlashWarning(w http.ResponseWriter, r *http.Request, msg string) error
- func (c *Cookie) GetSessionValue(key, r *http.Request) interface{}
- func (c *Cookie) IsLoggedIn(w http.ResponseWriter, r *http.Request) bool
- func (c *Cookie) Logout(w http.ResponseWriter, r *http.Request) error
- func (c *Cookie) PopFlashesDanger(w http.ResponseWriter, r *http.Request) []string
- func (c *Cookie) PopFlashesInfo(w http.ResponseWriter, r *http.Request) []string
- func (c *Cookie) PopFlashesSuccess(w http.ResponseWriter, r *http.Request) []string
- func (c *Cookie) PopFlashesWarning(w http.ResponseWriter, r *http.Request) []string
- func (c *Cookie) SessionGetUserId(r *http.Request) (int64, bool)
- func (c *Cookie) SetLoggedIn(id int64, w http.ResponseWriter, r *http.Request) error
- func (c *Cookie) SetSessionValue(key string, value interface{}, w http.ResponseWriter, r *http.Request) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidKeyLen = errors.New("Key length not 16, 24, or 32 bytes long")
Functions ¶
This section is empty.
Types ¶
type Cookie ¶
type Cookie struct {
// contains filtered or unexported fields
}
func (*Cookie) AddFlashDanger ¶
func (*Cookie) AddFlashInfo ¶
func (*Cookie) AddFlashSuccess ¶
func (*Cookie) AddFlashWarning ¶
func (*Cookie) GetSessionValue ¶
func (*Cookie) IsLoggedIn ¶
func (*Cookie) PopFlashesDanger ¶
func (*Cookie) PopFlashesInfo ¶
func (*Cookie) PopFlashesSuccess ¶
func (*Cookie) PopFlashesWarning ¶
func (*Cookie) SetLoggedIn ¶
func (*Cookie) SetSessionValue ¶
Click to show internal directories.
Click to hide internal directories.