deprecated-oc-catalog/services/init.go
2024-07-04 15:57:28 +02:00

31 lines
571 B
Go

package services
import (
"cloud.o-forge.io/core/oc-catalog/conf"
)
func Init() {
Discoveryinit() //First init DC name
// var DBpoint string
// var err error
DCName := conf.GetConfig().DCNAME
DBPoint := conf.GetConfig().DBPOINT
// DBpoint = os.Getenv("DOCKER_DBPOINT")
// if len(DBpoint) == 0 {
// DBpoint, err = beego.AppConfig.String("DBPOINT")
// if err != nil {
// logs.Critical("DBPOINT URI error: %v", err)
// panic(err)
// }
// }
// Mongoinit(DC_NAME + "-" + DBpoint)
Mongoinit(DCName + "-" + DBPoint )
// Mongoinit("beego-demo")
}