Documentation
¶
Index ¶
Constants ¶
View Source
const ( SessionModuleName = "Session" // 配置模块名 SessionInfraConfigFileName = "infra.session.yaml" // 会话基础设施配置文件名称 MemorySession SessionStoreType = "memory" // 内存会话 RedisSession SessionStoreType = "redis" // redis会话 )
常量相关定义
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SessionManagerInfraConfig ¶
type SessionManagerInfraConfig struct { StoreType SessionStoreType `mapstructure:"store_type"` // 会话存储类型 MaxOnline int `mapstructure:"max_online"` // 最大在线用户数 WebExpireTime int `mapstructure:"web_expire_time"` // 网页登录过期时间 单位(小时) AppExpireTime int `mapstructure:"app_expire_time"` // APP登录过期时间 单位(小时) base.BaseConfig `mapstructure:"omit"` // 基础配置信息 }
SessionManagerInfraConfig 会话管理器基础设施配置
func New ¶
func New(source common.ConfigSource) (*SessionManagerInfraConfig, error)
New 创建Session基础设施配置
Click to show internal directories.
Click to hide internal directories.