deprecated-oc-catalog/conf/conf.go

20 lines
233 B
Go
Raw Normal View History

package conf
import "sync"
type Config struct {
MongoURL string
DCNAME string
DBPOINT string
}
var instance *Config
var once sync.Once
func GetConfig() *Config {
once.Do(func() {
instance = &Config{}
})
return instance
}