package
Version:
v0.0.0-...-697c109
Opens a new window with list of versions in this module.
Published: Dec 16, 2023
License: MIT
Opens a new window with license information.
Imports: 4
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"`
}
type Config struct {
App `yaml:"app"`
HTTP `yaml:"http"`
Log `yaml:"log"`
PG `yaml:"postgres"`
JWT `yaml:"jwt"`
Hasher `yaml:"hasher"`
}
type HTTP struct {
Port string `env-required:"true" yaml:"port" env:"HTTP_PORT"`
}
type Hasher struct {
Salt string `env-required:"true" env:"HASHER_SALT"`
}
type JWT struct {
SignKey string `env-required:"true" env:"JWT_SIGN_KEY"`
TokenTTL time.Duration `env-required:"true" yaml:"token_ttl" env:"JWT_TOKEN_TTL"`
}
type Log struct {
Level string `env-required:"true" yaml:"level" env:"LOG_LEVEL"`
}
type PG struct {
MaxPoolSize int `env-required:"true" yaml:"max_pool_size" env:"PG_MAX_POOL_SIZE"`
URL string `env-required:"true" env:"PG_URL"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.