deprecated-oc-catalog/services/init.go

31 lines
585 B
Go

package services
import (
"cloud.o-forge.io/core/deprecated-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")
}