add helper for t_diagnosadanterapi
This commit is contained in:
No files matched your search
@@ -8,7 +8,7 @@ import (
|
||||
func SetConfig() {
|
||||
a.ParseSingleCfg(&O)
|
||||
|
||||
if O.Host == "" || O.Prefix == "" {
|
||||
if O.TargetHost == "" || O.Prefix == "" {
|
||||
panic("config sync host and prefix empty")
|
||||
}
|
||||
lo.I.Println("sync url config loaded, status: DONE!!")
|
||||
|
||||
@@ -3,7 +3,7 @@ package synccfg
|
||||
var O SyncUrlCfg = SyncUrlCfg{}
|
||||
|
||||
type SyncUrlCfg struct {
|
||||
Prefix string `yaml:"prefix"`
|
||||
Host string `yaml:"host"`
|
||||
Enable bool `yaml:"enable"`
|
||||
Prefix string `yaml:"prefix"`
|
||||
TargetHost string `yaml:"targetHost"`
|
||||
Enable bool `yaml:"enable"`
|
||||
}
|
||||
Reference in New Issue
Block a user