Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidCookie = errors.New("invalid cookie") ErrNotInCache = errors.New("item not found in cache") )
Functions ¶
This section is empty.
Types ¶
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
Session stores a value in a cookie and encrypts it using encryption.Key. A Time To Live (TTL) is specified, this is the duration the client should hold onto the cookie.
func NewSession ¶
Click to show internal directories.
Click to hide internal directories.