Init Project
This commit is contained in:
18
config/config.go
Normal file
18
config/config.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package config
|
||||
|
||||
type ServerConfig struct {
|
||||
Listen string `yaml:"listen"`
|
||||
Port int `yaml:"port"`
|
||||
Name string `yaml:"name"`
|
||||
UrlPrefix string `yaml:"urlPrefix"`
|
||||
LogPath string `yaml:"logPath"`
|
||||
MySQL MySQLConfig `yaml:"mysql"`
|
||||
}
|
||||
|
||||
type MySQLConfig struct {
|
||||
Host string `yaml:"host"`
|
||||
Port string `yaml:"port"`
|
||||
Username string `yaml:"username"`
|
||||
Password string `yaml:"password"`
|
||||
Database string `yaml:"database"`
|
||||
}
|
||||
Reference in New Issue
Block a user