Versions in this module Expand all Collapse all v1 v1.0.1 Sep 6, 2023 v1.0.0 Sep 3, 2019 Changes in this version + const DefaultKey + func Sessions(name string, store Store) gin.HandlerFunc + type CookieStore interface + func NewCookieStore(keyPairs ...[]byte) CookieStore + type MemcachedStore interface + func NewMemcacheStore(client *memcache.Client, keyPrefix string, keyPairs ...[]byte) MemcachedStore + type Options struct + Domain string + HttpOnly bool + MaxAge int + Path string + Secure bool + type RedisStore interface + func NewRedisStore(size int, network, address, password string, keyPairs ...[]byte) (RedisStore, error) + func NewRedisStoreWithDB(size int, network, address, password, DB string, keyPairs ...[]byte) (RedisStore, error) + func NewRedisStoreWithPool(pool *redis.Pool, keyPairs ...[]byte) (RedisStore, error) + type Session interface + AddFlash func(value interface{}, vars ...string) + Clear func() + Delete func(key interface{}) + Flashes func(vars ...string) []interface{} + Get func(key interface{}) interface{} + Options func(Options) + Save func() error + Set func(key interface{}, val interface{}) + func Default(c *gin.Context) Session + type Store interface + Options func(Options)