1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00
wakapi/models/config.go

20 lines
365 B
Go
Raw Normal View History

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
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
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"
}