From 303ccdd02b7dff53fd3eb7ae159eea6089f46044 Mon Sep 17 00:00:00 2001 From: AnthonyAxenov Date: Fri, 9 May 2025 17:58:40 +0800 Subject: [PATCH] =?UTF-8?q?=D0=92=D0=B5=D1=80=D1=81=D0=B8=D1=8F=201.0.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.example | 3 --- app/app.go | 2 +- app/config/config.go | 11 ----------- 3 files changed, 1 insertion(+), 15 deletions(-) diff --git a/.env.example b/.env.example index 514e72a..e90f66f 100644 --- a/.env.example +++ b/.env.example @@ -1,8 +1,5 @@ APP_DEBUG=false -HTTP_HOST=0.0.0.0 -HTTP_PORT=8031 - CACHE_ENABLED=false CACHE_HOST=localhost CACHE_PORT=6379 diff --git a/app/app.go b/app/app.go index 055a906..326218d 100644 --- a/app/app.go +++ b/app/app.go @@ -13,7 +13,7 @@ import ( "github.com/redis/go-redis/v9" ) -const VERSION = "0.2.0" +const VERSION = "1.0.0" // Arguments описывает аргументы командной строки type Arguments struct { diff --git a/app/config/config.go b/app/config/config.go index c171af9..9712a0a 100644 --- a/app/config/config.go +++ b/app/config/config.go @@ -16,7 +16,6 @@ import ( type Config struct { DebugMode bool Cache CacheConfig - Http HttpConfig } // CacheConfig описывает конфигурацию подключения к keydb @@ -31,12 +30,6 @@ type CacheConfig struct { IsActive bool } -// HttpConfig описывает конфигурацию веб-сервера -type HttpConfig struct { - Host string - Port uint -} - // Init инициализирует объект конфигурации из переменных окружения func Init() *Config { _ = godotenv.Load(".env") @@ -51,10 +44,6 @@ func Init() *Config { Db: readEnvInteger("CACHE_DB", 0), Ttl: readEnvInteger("CACHE_TTL", 1800), }, - Http: HttpConfig{ - Host: readEnv("HTTP_HOST", "0.0.0.0"), - Port: readEnvInteger("HTTP_PORT", 1380), - }, } }