initial config for simrs sync

This commit is contained in:
dpurbosakti
2025-10-22 15:01:13 +07:00
parent cd99c25715
commit 26fa5b8c8e
12 changed files with 220 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
package synccfg
import (
a "github.com/karincake/apem"
lo "github.com/karincake/apem/loggero"
)
func SetConfig() {
a.ParseSingleCfg(&O)
if O.Host == "" || O.Target == "" {
panic("sync url config host or target empty")
}
lo.I.Println("sync url config loaded, status: DONE!!")
}
+8
View File
@@ -0,0 +1,8 @@
package synccfg
var O SyncUrlCfg = SyncUrlCfg{}
type SyncUrlCfg struct {
Target string `yaml:"target"`
Host string `yaml:"host"`
}