package
Version:
v0.0.0-...-a8cf2a2
Opens a new window with list of versions in this module.
Published: Nov 2, 2023
License: GPL-3.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type App struct {
Name string `env-required:"true" yaml:"name" env:"APP_NAME"`
Version string `env-required:"true" yaml:"version" env:"APP_VERSION"`
}
App -.
type Auth struct {
Login string `mapstructure:"login"`
Password string `mapstructure:"pass"`
}
type Config struct {
App `yaml:"app"`
HTTP `yaml:"http"`
Log `yaml:"logger"`
PG `yaml:"postgres"`
Auth `yaml:"auth"`
Jwt `yaml:"jwt"`
}
Config -.
type HTTP struct {
Port string `env-required:"true" yaml:"port" env:"HTTP_PORT"`
}
HTTP -.
type Jwt struct {
SecretKey string `mapstructure:"secret_key"`
AccessTokenTTL int64 `mapstructure:"access_token_ttl"`
RefreshTokenTTL int64 `mapstructure:"refresh_token_ttl"`
}
type Log struct {
Level string `env-required:"true" yaml:"log_level" mapstructure:"log_level" env:"LOG_LEVEL"`
}
Log -.
type PG struct {
PoolMax int `env-required:"true" yaml:"pool_max" env:"PG_POOL_MAX"`
URL string `env-required:"true" yaml:"url" env:"PG_URL"`
}
PG -.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.