Discover Packages
github.com/Slava02/Involvio
config
package
Version:
v0.0.0-...-26d71a5
Opens a new window with list of versions in this module.
Published: Sep 28, 2024
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type App struct {
Name string `env-required:"false" json:"name" env:"APP_NAME"`
Version string `env-required:"false" json:"version" env:"APP_VERSION"`
}
type Config struct {
App `json:"app"`
HTTP `json:"rest"`
DB `json:"db"`
Log `json:"logger"`
}
LoadConfig returns Involvio config.
type DB struct {
DBHost string `env-required:"false" json:"host" env:"DB_HOST"`
DBPort int `env-required:"false" json:"port" env:"DB_PORT"`
DBUser string `env-required:"false" json:"user" env:"DB_USER"`
DBPassword string `env-required:"true" json:"password" env:"DB_PASSWORD"`
DBName string `env-required:"false" json:"name" env:"DB_NAME"`
PoolMax int32 `env-required:"true" json:"pool_max" env:"PG_POOL_MAX"`
}
type HTTP struct {
Port string `env-required:"false" json:"port" env:"HTTP_PORT"`
}
type Log struct {
Level slog .Level `env-required:"false" json:"level" env:"LOG_LEVEL"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.