Documentation
¶
Index ¶
- func ClearCookie(name string, rw http.ResponseWriter)
- func NewCookie(cookieName string) *http.Cookie
- type CookieValueMap
- type SafeCookie
- func (sc *SafeCookie) GetSecureCookieValue(r *http.Request, cookieName string) (cookieValue CookieValueMap, err error)
- func (sc *SafeCookie) SetSecureCookie(cookie *http.Cookie, mapValue CookieValueMap, ...)
- func (sc *SafeCookie) UpdateSecureCookie(writer http.ResponseWriter, request *http.Request, cookieName string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearCookie ¶
func ClearCookie(name string, rw http.ResponseWriter)
Types ¶
type CookieValueMap ¶
type CookieValueMap map[string]interface{}
type SafeCookie ¶
type SafeCookie struct {
// contains filtered or unexported fields
}
func (*SafeCookie) GetSecureCookieValue ¶
func (sc *SafeCookie) GetSecureCookieValue(r *http.Request, cookieName string) (cookieValue CookieValueMap, err error)
Get previous data if the value is nil will new an empty data.
func (*SafeCookie) SetSecureCookie ¶
func (sc *SafeCookie) SetSecureCookie(cookie *http.Cookie, mapValue CookieValueMap, responseWriter http.ResponseWriter)
func (*SafeCookie) UpdateSecureCookie ¶
Click to show internal directories.
Click to hide internal directories.