Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
DB DataBase // 配置文件数据库对象
HTTP HTTP // HTTP 协议配置对象
Logger Logger // Logger 配置对象
Redis Redis // Redis 配置对象
}
Config 全局JSON配置对象
type DataBase ¶
type DataBase struct {
Driver string // 数据库驱动
Source string // 连接字符串
ShowSQL bool // 是否显示 SQL 语句
MaxOpenConns int // 数据库连接池数量
MaxIdleConns int // 数据库连接最大空闲数
Cached int // 缓存大小
UserManageDisable bool //是否开启用户管理
}
DataBase 数据库连接对象
Click to show internal directories.
Click to hide internal directories.