优惠券额度包
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

cfg_app.go 597 B

12345678910111213141516
  1. package md
  2. import "time"
  3. //数据库配置结构体
  4. type DBCfg struct {
  5. Host string `yaml:"host"` //ip及端口
  6. Name string `yaml:"name"` //库名
  7. User string `yaml:"user"` //用户
  8. Psw string `yaml:"psw"` //密码
  9. ShowLog bool `yaml:"show_log"` //是否显示SQL语句
  10. MaxLifetime time.Duration `yaml:"max_lifetime"`
  11. MaxOpenConns int `yaml:"max_open_conns"`
  12. MaxIdleConns int `yaml:"max_idle_conns"`
  13. Path string `yaml:"path"` //日志文件存放路径
  14. }