Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conf ¶
Conf is the struct the manages the settings for the cookie creation, must be passed to the constructor.
type CookieIface ¶
type CookieIface interface {
Set(w http.ResponseWriter, r *http.Request, val map[string]interface{})
Get(w http.ResponseWriter, r *http.Request) map[string]interface{}
Del(w http.ResponseWriter, r *http.Request)
}
CookieIface is the interface to be implemented in case other backends implementation are added in future right one is only one.
type Cookies ¶
type Cookies struct {
// contains filtered or unexported fields
}
func (*Cookies) Del ¶
func (c *Cookies) Del(w http.ResponseWriter, r *http.Request)
Del clears the cookie from the client
Click to show internal directories.
Click to hide internal directories.