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") }