Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// 应用名称
AppName string
Server struct {
//运行端口号
Port int
}
// 主数据库配置
Master Database `bean-gorm:"master"`
Page PageConfig
AnonymousUrl []string
}
var ( // 系统的默认配置 DefaultConfig *Config )
type Database ¶
type Database struct {
// 主机地址
Host string
// 端口号
Port int
// 数据库用户名
UserName string
// 数据库密码
Password string
// 数据库名称
DbName string
// 最大空闲连接
MaxIdle int
// 最大连接
MaxOpen int
LogSql bool
}
数据库配置
type InitConfigStruct ¶
type PageConfig ¶
Click to show internal directories.
Click to hide internal directories.