Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶
Загрузить конфигурацию из TOML файла configFilename.
Types ¶
type Config ¶
type Config struct { Domain string `toml:"domain"` // Доменное имя SessionIDKey string `toml:"session_id"` // как будет называться ключ сессии в cookie SessionKey string `toml:"session_key"` // Криптографический ключ для сессий CSRFKey string `toml:"csrf_key"` // Криптографический ключ для CSRF защиты SessionExpires string `toml:"session_expires"` // время жизни сессии DBConnectionString string `toml:"db_connection_string"` // Строка для соединения с БД PostgreSQL RedisAddress string `toml:"redis_address"` }
var C Config
Click to show internal directories.
Click to hide internal directories.