This commit is contained in:
pb
2025-02-27 17:09:37 +01:00
parent 1d45b470b7
commit 7b27945493
25 changed files with 7 additions and 1330 deletions

View File

@@ -1,10 +0,0 @@
appname = oc-datacenter
httpport = 8080
runmode = dev
autorender = false
copyrequestbody = true
EnableDocs = true
sqlconn =
MONGO_URL = "mongodb://127.0.0.1:27017/beego-demo"
MONGO_DATABASE = "DC_myDC-demo_06042021"

View File

@@ -1,22 +0,0 @@
package conf
import "sync"
type Config struct {
Mode string
KubeHost string
KubePort string
KubeCA string
KubeCert string
KubeData string
}
var instance *Config
var once sync.Once
func GetConfig() *Config {
once.Do(func() {
instance = &Config{}
})
return instance
}