config

package
v0.0.0-...-704a905 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(configFilename string) error

Загрузить конфигурацию из 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

Jump to

Keyboard shortcuts

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