quality of life, updated config structure

This commit is contained in:
2025-12-08 06:57:54 +01:00
parent 8f75e6491f
commit 786b217f05
6 changed files with 77 additions and 181 deletions

View File

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