You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
838 B
22 lines
838 B
package configApp
|
|
|
|
//服务基础配置
|
|
type Server struct {
|
|
Appsetup appsetup `mapstructure:"appsetup" json:"appsetup" yaml:"appsetup"`
|
|
Logsetup logsetup `mapstructure:"logconfig" json:"logconfig" yaml:"logconfig"`
|
|
}
|
|
|
|
//服务配置详情
|
|
type appsetup struct {
|
|
Port int `mapstructure:"port" json:"port" yaml:"port"`
|
|
Readtime int `mapstructure:"readtime" json:"readtime" yaml:"readtime"`
|
|
Writetime int `mapstructure:"writetime" json:"writetime" yaml:"writetime"`
|
|
AppKey string `mapstructure:"appkey" json:"appkey" yaml:"appkey"`
|
|
DefaultPassword string `mapstructure:"password" json:"password" yaml:"password"`
|
|
PreFix string `mapstructure:"prefix" json:"prefix" yaml:"prefix"`
|
|
}
|
|
|
|
//日志配置
|
|
type logsetup struct {
|
|
Path string `mapstructure:"path" json:"path" yaml:"path"`
|
|
}
|
|
|