mirror of
https://github.com/muety/wakapi.git
synced 2023-08-10 21:12:56 +03:00
22 lines
422 B
Go
22 lines
422 B
Go
package models
|
|
|
|
type Config struct {
|
|
Env string
|
|
Port int
|
|
Addr string
|
|
DbHost string
|
|
DbPort uint
|
|
DbUser string
|
|
DbPassword string
|
|
DbName string
|
|
DbDialect string
|
|
DbMaxConn uint
|
|
CleanUp bool
|
|
CustomLanguages map[string]string
|
|
LanguageColors map[string]string
|
|
}
|
|
|
|
func (c *Config) IsDev() bool {
|
|
return c.Env == "dev"
|
|
}
|