init project
This commit is contained in:
commit
d63cc8d9f5
33 files changed
+1529
No files matched your search
@@ -0,0 +1,21 @@
|
||||
package storage
|
||||
|
||||
type Config struct {
|
||||
Mysql ConfigMysql `json:"mysql"`
|
||||
Redis ConfigRedis `json:"redis"`
|
||||
}
|
||||
|
||||
type ConfigMysql struct {
|
||||
DB string `json:"db"`
|
||||
Debug bool `json:"debug"`
|
||||
ShowSQL bool `json:"show_sql"`
|
||||
MaxOpenConn int `json:"max_open_conn"`
|
||||
MaxIdleConn int `json:"max_idle_conn"`
|
||||
ConnMaxLifetime int `json:"conn_max_life_time"`
|
||||
}
|
||||
|
||||
type ConfigRedis struct {
|
||||
Addr string `json:"addr"`
|
||||
Auth string `json:"auth"`
|
||||
DB int `json:"db"`
|
||||
}
|
||||
Reference in new issue
Block a user