This commit is contained in:
mr 2024-07-18 13:43:41 +02:00
parent 1999213f8b
commit 9bc77b6699

View File

@ -24,7 +24,11 @@ func GetConfig() *Config {
return instance
}
func SetConfig(config *Config) *Config {
instance = config
func SetConfig(url string, name string, point string) *Config {
instance = &Config{
MongoURL: url,
DCNAME: name,
DBPOINT: point,
}
return instance
}