mirror of
https://github.com/muety/wakapi.git
synced 2023-08-10 21:12:56 +03:00
9697bb5fd5
feat: add login page
29 lines
694 B
Go
29 lines
694 B
Go
package models
|
|
|
|
import "github.com/gorilla/securecookie"
|
|
|
|
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
|
|
DefaultUserName string
|
|
DefaultUserPassword string
|
|
SecureCookieHashKey string
|
|
SecureCookieBlockKey string
|
|
CustomLanguages map[string]string
|
|
LanguageColors map[string]string
|
|
SecureCookie *securecookie.SecureCookie
|
|
}
|
|
|
|
func (c *Config) IsDev() bool {
|
|
return c.Env == "dev"
|
|
}
|