Documentation ¶
Overview ¶
Index ¶
- Variables
- func Delete(w http.ResponseWriter, name string)
- func Read(r *http.Request, name string) (string, error)
- func ReadEncrypted(r *http.Request, name string, secretKey []byte) (string, error)
- func ReadSigned(r *http.Request, name string, secretKey []byte) (string, error)
- func Write(w http.ResponseWriter, cookie http.Cookie) error
- func WriteEncrypted(w http.ResponseWriter, cookie http.Cookie, secretKey []byte) error
- func WriteSigned(w http.ResponseWriter, cookie http.Cookie, secretKey []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrValueTooLong = errors.New("cookie value too long") ErrInvalidValue = errors.New("invalid cookie value") )
Functions ¶
func Delete ¶
func Delete(w http.ResponseWriter, name string)
func ReadEncrypted ¶
func WriteEncrypted ¶
func WriteSigned ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.