Versions in this module Expand all Collapse all v0 v0.10.1 Jul 30, 2018 v0.10.0 Jul 7, 2018 Changes in this version + var ErrCookieInvaildTimestamp = errors.New("security/cookie: timestamp is invalid") + var ErrCookieTimestampIsExpired = errors.New("security/cookie: timestamp expried") + var ErrCookieTimestampIsTooNew = errors.New("security/cookie: timestamp is too new") + var ErrCookieValueIsInvalid = errors.New("security/cookie: value is not valid") + var ErrCookieValueIsTooLarge = errors.New("security/cookie: value is greater than 4096") + var ErrSignVerificationIsFailed = errors.New("security/cookie: sign verification is failed") + func NewWithOptions(value string, opts *Options) *http.Cookie + type Manager struct + Options *Options + func NewManager(opts *Options, signKey, encKey string) (*Manager, error) + func (m *Manager) Decode(value string) ([]byte, error) + func (m *Manager) Encode(b []byte) (string, error) + func (m *Manager) New(value string) *http.Cookie + func (m *Manager) Write(w http.ResponseWriter, value string) + type Options struct + Domain string + HTTPOnly bool + MaxAge int64 + Name string + Path string + SameSite string + Secure bool