Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DB ¶
type DB struct { LogFile string `json:"log_file" json:"log_file"` LogLevel string `json:"log_level" yaml:"log_level"` Host string `json:"host" yaml:"host"` Port string `json:"port" yaml:"port"` DBName string `json:"dbname" yaml:"dbname"` UserName string `json:"username" yaml:"username"` Password string `json:"password" yaml:"password"` MaxIdleTime int `json:"max_idle_time" yaml:"max_idle_time"` MaxLifeTime int `json:"max_life_time" yaml:"max_life_time"` MaxOpenConn int `json:"max_open_conn" yaml:"max_open_conn"` MaxIdleConn int `json:"max_idle_conn" yaml:"max_idle_conn"` // contains filtered or unexported fields }
DB mysql实例
Click to show internal directories.
Click to hide internal directories.