Versions in this module Expand all Collapse all v1 v1.0.2 Mar 9, 2021 Changes in this version + const Memory + const Redis + const ValueMap + const ValueString + func Sessions(mgr SessionMgr) gin.HandlerFunc + func SetCookie(valueType valueType, name string, maxAge int, path, domain string, ...) + type Session interface + Delete func(keys ...string) + Get func(keys ...string) interface{} + Set func(value interface{}, keys ...string) + func GetSession(ctx *gin.Context, name string) Session + type SessionMgr interface + CreateSession func(cookValue string, valueType valueType, expire int) Session + GetSession func(cookValue string) Session + func ChooseSessionStore(st storeType, clients ...*redis.Client) (mgr SessionMgr)