forked from nixcn/nixcn-cms
22 lines
478 B
Go
22 lines
478 B
Go
package config
|
|
|
|
type config struct {
|
|
Server server `yaml:"server"`
|
|
Database database `yaml:"database"`
|
|
}
|
|
|
|
type server struct {
|
|
Address string `yaml:"address"`
|
|
DebugMode string `yaml:"debug_mode"`
|
|
FileLogger string `yaml:"file_logger"`
|
|
JwtSecret string `yaml:"jwt_secret"`
|
|
}
|
|
|
|
type database struct {
|
|
Type string `yaml:"type"`
|
|
Host string `yaml:"host"`
|
|
Name string `yaml:"name"`
|
|
Username string `yaml:"username"`
|
|
Password string `yaml:"password"`
|
|
}
|