Versions in this module Expand all Collapse all v0 v0.0.1 Mar 22, 2024 Changes in this version + func NewCookie(name, value string, options *Options) *http.Cookie + func Save(c *gin.Context) error + func SetCookieToContext(c *gin.Context, cookie *http.Cookie) + type MultiError []error + func (m MultiError) Error() string + type Options struct + Domain string + HttpOnly bool + MaxAge int + Path string + Secure bool + type Registry struct + func GetRegistry(c *gin.Context) *Registry + func (s *Registry) Get(store Store, name string) (session *Session, err error) + func (s *Registry) Save(c *gin.Context) error + type Session struct + ID string + IsNew bool + Options *Options + Values map[interface{}]interface{} + func NewSession(store Store, name string) *Session + func (s *Session) Name() string + func (s *Session) Save(c *gin.Context) error + func (s *Session) Store() Store + type Store interface + Delete func(c *gin.Context, s *Session) error + Get func(c *gin.Context, name string) (*Session, error) + New func(c *gin.Context, name string) (*Session, error) + Save func(c *gin.Context, s *Session) error