quality of life, updated config structure
This commit is contained in:
@@ -3,9 +3,8 @@ package config
|
||||
import "log/slog"
|
||||
|
||||
type Config struct {
|
||||
Log LogConfig `toml:"log"`
|
||||
Gateway GatewayConfig `toml:"gateway"`
|
||||
Database DatabaseConfig `toml:"database"`
|
||||
Log LogConfig `toml:"log"`
|
||||
Gateway GatewayConfig `toml:"gateway"`
|
||||
}
|
||||
|
||||
type GatewayConfig struct {
|
||||
@@ -20,10 +19,3 @@ type LogConfig struct {
|
||||
Directory string `toml:"directory"`
|
||||
Rotation int `toml:"rotation"`
|
||||
}
|
||||
|
||||
type DatabaseConfig struct {
|
||||
HostDSN string `toml:"host_dsn"`
|
||||
Username string `toml:"username"`
|
||||
Password string `toml:"password"`
|
||||
Database string `toml:"database"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user