config

package
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2023 License: MIT Imports: 6 Imported by: 0

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

New 创建Session基础设施配置

type SessionStoreType

type SessionStoreType string

SessionStoreType 会话存储类型

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL