This commit is contained in:
Artem Tsyrulnikov
2026-01-19 12:50:36 +03:00
parent 62e8f98429
commit 5473b26787
17 changed files with 478 additions and 599 deletions

View File

@@ -5,7 +5,6 @@ import (
"fmt"
"os"
"github.com/TelegramExchange/pkg/logger"
"github.com/TelegramExchange/pkg/postgres"
"github.com/TelegramExchange/pkg/telegram"
"github.com/joho/godotenv"
@@ -18,8 +17,13 @@ type HTTP struct {
Addr string `envconfig:"HTTP__ADDR" default:":8080"`
}
type LoggerConfig struct {
Level string `default:"info" envconfig:"PARSER__LOGGER__LEVEL"`
PrettyConsole bool `default:"true" envconfig:"PARSER__LOGGER__PRETTY_CONSOLE"`
}
type Config struct {
Logger logger.Config
Logger LoggerConfig
Postgres postgres.Config
Telegram telegram.Config
ChannelWorker worker.ChannelConfig