package
0.0.0-20240919033358-cce434e5d354
Repository: https://github.com/codfrm/cago.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
NewCacheSessionManager 基于缓存组件的session管理器.
NewCacheSessionManagerWithExpire 带上过期时间并且基于缓存组件的session管理器.
NewCookieSessionManager 从cookie中读取session id.
NewExpireSessionManager 创建过期session管理器 expireDuration 过期时间 单位为秒 当session过期时,get会返回原session并且报错 刷新和保存时会刷新过期时间.
No description provided by the author
No description provided by the author
NewRefreshHTTPSessionManager 创建一个拥有两个token的session管理器 拥有一个access_token和一个refresh_token 用于token双刷.
# Variables
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
# Interfaces
AccessTokenMapping access_token与refresh_token的映射关系.
# Type aliases
No description provided by the author