package
Version:
v0.0.0-...-7c35eaa
Opens a new window with list of versions in this module.
Published: Jul 4, 2024
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 {
Mode string `mapstructure:"MODE"`
}
type Config struct {
App App `mapstructure:"APP"`
Rest Rest `mapstructure:"REST"`
Database Database `mapstructure:"DATABASE"`
Swagger Swagger `mapstructure:"SWAGGER"`
Jwt Jwt `mapstructure:"JWT"`
Smtp Smtp `mapstructure:"SMTP"`
}
type Database struct {
Host string `mapstructure:"HOST"`
Port int `mapstructure:"PORT"`
LogLevel int `mapstructure:"LOG_LEVEL"`
UserName string `mapstructure:"USER_NAME"`
Password string `mapstructure:"PASSWORD"`
DbName string `mapstructure:"DB_NAME"`
}
type Jwt struct {
SecretKey string `mapstructure:"SECRET_KEY"`
}
type Rest struct {
Port int `mapstructure:"PORT"`
Mode string `mapstructure:"MODE"`
}
type Smtp struct {
Host string `mapstructure:"HOST"`
Port int `mapstructure:"PORT"`
UserName string `mapstructure:"USER_NAME"`
Password string `mapstructure:"PASSWORD"`
}
type Swagger struct {
Host string `mapstructure:"HOST"`
BasePath string `mapstructure:"BASE_PATH"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.