Documentation
¶
Index ¶
Constants ¶
View Source
const DataBaseConnectionTimeOut = 10000
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GophermartConfig ¶
type GophermartConfig struct {
// Адрес сервера и порт
ServerURL string `env:"RUN_ADDRESS"`
// Внешняя система расчёта бонусов
AccrualURL string `env:"ACCRUAL_SYSTEM_ADDRESS"`
// Строка подключения к БД
DatabaseURI string `env:"DATABASE_URI"`
// Уроверь логирования
LogLevel string `env:"LOG_LEVEL"`
// Количество воркеров для обработки задач
WorkerNum int `env:"WORKER_NUM"`
}
func NewGophermartConfig ¶
func NewGophermartConfig() (*GophermartConfig, error)
Click to show internal directories.
Click to hide internal directories.