22 lines
552 B
Go
22 lines
552 B
Go
|
|
package config
|
||
|
|
|
||
|
|
type Config struct {
|
||
|
|
Port int `yaml:"port"`
|
||
|
|
Database struct {
|
||
|
|
Username string `yaml:"username"`
|
||
|
|
Password string `yaml:"password"`
|
||
|
|
Host string `yaml:"host"`
|
||
|
|
Port int `yaml:"port"`
|
||
|
|
Params string `yaml:"params"`
|
||
|
|
} `yaml:"database"`
|
||
|
|
Redis struct {
|
||
|
|
Host string `yaml:"host"`
|
||
|
|
Port int `yaml:"port"`
|
||
|
|
Username string `yaml:"username"`
|
||
|
|
Password string `yaml:"password"`
|
||
|
|
} `yaml:"redis"`
|
||
|
|
Jwtsecret string `yaml:"jwtsecret"`
|
||
|
|
WxID string `yaml:"wxid"`
|
||
|
|
Wxsecret string `yaml:"wxsecret"`
|
||
|
|
}
|