Files
munawwirul_jamal b09c9f183c feat/sync-setting:
+ moved infra/sync-cfg to infra/sync-consumer-cfg
+ adjut anything related to old infra/sync
+ infra/sync is now have new setting for the sync
2025-11-28 09:16:38 +07:00

16 lines
371 B
Go

package synccfg
import (
a "github.com/karincake/apem"
lo "github.com/karincake/apem/loggero"
)
func SetConfig() {
a.ParseSingleCfg(&O)
if O.NewSecretKey == "" || O.NewHost == "" || O.OldSecretKey == "" || O.OldHost == "" {
panic("secret key and host of the sync partner config can not be empty")
}
lo.I.Println("sync partner config loaded, status: DONE!!")
}