Files
nixcn-cms/config/types.go
2025-12-19 17:38:51 +08:00

21 lines
439 B
Go

package config
type config struct {
Server server `yaml:"server"`
Database database `yaml:"database"`
}
type server struct {
Address string `yaml:"address"`
DebugMode bool `yaml:"debug_mode"`
FileLogger bool `yaml:"file_logger"`
}
type database struct {
Type string `yaml:"type"`
Host string `yaml:"host"`
Name string `yaml:"name"`
Username string `yaml:"username"`
Password string `yaml:"password"`
}