Diffstat (limited to 'config/config.go')
| -rw-r--r-- | config/config.go | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/config/config.go b/config/config.go index 7438fe1..fe0ac72 100644 --- a/config/config.go +++ b/config/config.go @@ -41,17 +41,7 @@ type AvailableLanguageConfig struct { } type AuthConfig struct { - Salt string `json:"Salt" yaml:"salt" validate:"required"` - Db DbConfig `json:"Db" yaml:"db" validate:"required"` -} - -type DbConfig struct { - Type string `json:"Type" yaml:"type" validate:"required,oneof=sqlite3"` - Cfg Sqlite3Config `json:"Config" yaml:"config"` -} - -type Sqlite3Config struct { - DSN string `json:"DSN" yaml:"dsn" validate:"required"` + Salt string `json:"Salt" yaml:"salt" validate:"required"` } func LoadConfig(path string, config *Config) error { |