Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Env string `env:"APP_ENV" env-default:"local"` LogFile string `env:"APP_LOG_FILE" env-default:""` Server Server Client Client Loger *slog.Logger }
Структура конфигурации Файл конфигурации должен распологаться в корне проекта и иметь имя config.yaml
type Server ¶
type Server struct { BindAddr string `env:"SERVER_BIND_ADDR" env-default:":8080"` Timeout time.Duration `env:"TIMEOUT" env-default:"5s"` IdleTimeout time.Duration `env:"IDDLE" env-default:"30s"` SSLEnabled bool `env:"SSL_ENABLE" env-default:"false"` KeyChain string `env:"SSL_CHAIN" env-default:""` PrivateKey string `env:"SSL_KEY" env-default:""` ApiKey string `env:"API_KEY" env-default:""` }
Click to show internal directories.
Click to hide internal directories.