Documentation ¶
Index ¶
- func NewCookieStore(opt ...Option) session.ManagerStore
- type Option
- func SetBlockFunc(blockFunc func([]byte) (cipher.Block, error)) Option
- func SetBlockKey(blockKey []byte) Option
- func SetCookieName(cookieName string) Option
- func SetHashFunc(hashFunc func() hash.Hash) Option
- func SetHashKey(hashKey []byte) Option
- func SetMaxAge(maxAge int) Option
- func SetMaxLength(maxLength int) Option
- func SetMinAge(minAge int) Option
- func SetSecure(secure bool) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCookieStore ¶
func NewCookieStore(opt ...Option) session.ManagerStore
NewCookieStore Create an instance of a cookie store
Types ¶
type Option ¶
type Option func(*options)
Option A cookie parameter options
func SetBlockFunc ¶
SetBlockFunc sets the encryption function used to create a cipher.Block
func SetHashFunc ¶
SetHashFunc sets the hash function used to create HMAC
func SetHashKey ¶
SetHashKey used to authenticate values using HMAC
func SetMaxLength ¶
SetMaxLength restricts the maximum length, in bytes, for the cookie value
Click to show internal directories.
Click to hide internal directories.