2019-05-05 23:36:49 +03:00
|
|
|
package models
|
|
|
|
|
|
|
|
type Config struct {
|
2020-02-20 17:39:56 +03:00
|
|
|
Env string
|
2019-05-21 18:16:46 +03:00
|
|
|
Port int
|
|
|
|
Addr string
|
|
|
|
DbHost string
|
2019-11-08 00:56:06 +03:00
|
|
|
DbPort uint
|
2019-05-21 18:16:46 +03:00
|
|
|
DbUser string
|
|
|
|
DbPassword string
|
|
|
|
DbName string
|
|
|
|
DbDialect string
|
2019-10-11 10:06:34 +03:00
|
|
|
DbMaxConn uint
|
2020-03-09 19:30:23 +03:00
|
|
|
CleanUp bool
|
2019-05-21 18:16:46 +03:00
|
|
|
CustomLanguages map[string]string
|
2019-05-05 23:36:49 +03:00
|
|
|
}
|
2020-02-20 17:39:56 +03:00
|
|
|
|
|
|
|
func (c *Config) IsDev() bool {
|
|
|
|
return c.Env == "dev"
|
|
|
|
}
|