refactor
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user