Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶
func LoadConfig(filePath string)
LoadConfig loads the configuration from a specified YAML file path.
Types ¶
type ApolloUser ¶
type ApolloUser struct {
ID int `json:"id"`
Name string `json:"name"`
Email string `json:"email"`
UserType string `json:"userType"`
}
AUTHBOSS INTERFACES
type AssetsConfig ¶
type AssetsConfig struct {
Img string `yaml:"images"`
CSS string `yaml:"css"`
JS string `yaml:"js"`
}
AssetsConfig armazena as configurações de ativos.
type Config ¶
type Config struct {
Assets AssetsConfig `yaml:"assets"`
StaticConfig StaticConfig `yaml:"static_config"`
Templates TemplatesConfig `yaml:"templates"`
Database DatabaseConfig `yaml:"database"`
ServerConfig ServerConfig `yaml:"server"`
LogConfig LogConfig `yaml:"log"`
Localization LocalizationConfig `yaml:"localization"`
}
Config armazena as configurações do aplicativo.
type DatabaseConfig ¶
type DatabaseConfig struct {
User string `yaml:"user"`
Password string `yaml:"password"`
Host string `yaml:"host"`
Port string `yaml:"port"`
Name string `yaml:"name"`
}
DatabaseConfig armazena as configurações do banco de dados.
type LocalizationConfig ¶
type LocalizationConfig struct {
LocalesPath string `yaml:"locales_path"`
}
type LoginRequest ¶
type ServerConfig ¶
type ServerConfig struct {
Port string `yaml:"port"`
}
type StaticConfig ¶
StaticConfig armazena as configurações estáticas.
type TemplatesConfig ¶
type TemplatesConfig struct {
Path string `yaml:"path"`
}
Click to show internal directories.
Click to hide internal directories.