feat: 细化配置文件,不兼容性更新

This commit is contained in:
Mmx
2021-11-25 08:25:03 +08:00
parent 5aa82c3fd9
commit 884934b951
5 changed files with 23 additions and 7 deletions

View File

@@ -1,10 +1,20 @@
package models
type Daemon struct {
Enable bool `json:"enable"`
Path string `json:"path"`
}
type Guardian struct {
Enable bool `json:"enable"`
Duration uint `json:"duration"`
}
type Settings struct {
Timeout uint `json:"timeout"`
DemoMode bool `json:"demo_mode"`
Guardian uint `json:"guardian"`
Daemon bool `json:"daemon"`
Guardian Guardian
Daemon Daemon
}
type Config struct {