config

package
v0.0.0-...-0361e45 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL