Documentation
¶
Index ¶
Constants ¶
View Source
const ( AppName = "ginger" AppVersion = "v0.2.0" // 环境变量未设置时的默认值,默认使用开发环境配置 DefaultEnv = gin.DebugMode // jwt编码时的私钥字符串 TokenPrivateKey = "ginger" )
常量级参数配置项,编译前设置值
Variables ¶
Functions ¶
Types ¶
type Mysql ¶
type Mysql struct { DbHost string `yaml:"dbHost"` DbPort int64 `yaml:"dbPort"` DbUser string `yaml:"dbUser"` DbPasswd string `yaml:"dbPasswd"` DbName string `yaml:"dbName"` ConnMaxLifetime int64 `yaml:"connMaxLifetime"` MaxIdleConns int64 `yaml:"maxIdleConns"` MaxOpenConns int64 `yaml:"maxOpenConns"` ChartSet string `yaml:"charset"` AllowCleartextPasswords bool `yaml:"allowCleartextPasswords"` InterpolateParams bool `yaml:"interpolateParams"` Timeout int64 `yaml:"timeout"` ReadTimeout int64 `yaml:"readTimeout"` ParseTime bool `yaml:"parseTime"` PING bool `yaml:"ping"` }
Click to show internal directories.
Click to hide internal directories.