new oclib + comments

This commit is contained in:
mr
2024-08-30 10:55:35 +02:00
parent a07db36d99
commit 413a5284bb
5 changed files with 29 additions and 11 deletions

View File

@@ -29,6 +29,7 @@ func main() {
o.GetStringDefault("MONGO_DATABASE", "DC_myDC"),
"",
)
// Init the OC library, hostname & port are used for discovery purpose, it's the hostname and port of the service
oclib.Init("oc-datacenter", o.GetStringDefault("HOSTNAME", "localhost"), o.GetStringDefault("PORT", "8092"))
// Normal beego init
//if beego.BConfig.RunMode == "dev" {