This commit is contained in:
2026-05-30 09:24:42 +08:00
parent 6c3de4b2ef
commit e054f458bb
17 changed files with 533 additions and 78 deletions

View File

@@ -7,15 +7,15 @@
package config
import (
"github.com/joho/godotenv"
"os"
"strconv"
"github.com/joho/godotenv"
)
// Config описывает конфигурацию
type Config struct {
DebugMode bool
Cache CacheConfig
Cache CacheConfig
}
// CacheConfig описывает конфигурацию подключения к keydb
@@ -34,7 +34,6 @@ type CacheConfig struct {
func Init() *Config {
_ = godotenv.Load(".env")
return &Config{
//DebugMode: readEnvBoolean("APP_DEBUG", false),
Cache: CacheConfig{
IsEnabled: readEnvBoolean("CACHE_ENABLED", false),
Host: readEnv("CACHE_HOST", "localhost"),