Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Module("config")
Module provides config as fx module
Functions ¶
func ProvideConfig ¶
ProvideConfig provides config with fx
Types ¶
type AppConfig ¶
type AppConfig struct {
Server ServerConfig `yaml:"server"`
Log LogConfig `yaml:"log"`
Database DatabaseConfig `yaml:"database"`
JWT JWTConfig `yaml:"jwt"`
}
func LoadFromFile ¶
LoadFromFile Load config from file path
type DatabaseConfig ¶
type ServerConfig ¶
Click to show internal directories.
Click to hide internal directories.