config
This commit is contained in:
parent
1999213f8b
commit
9bc77b6699
8
conf.go
8
conf.go
@ -24,7 +24,11 @@ func GetConfig() *Config {
|
|||||||
return instance
|
return instance
|
||||||
}
|
}
|
||||||
|
|
||||||
func SetConfig(config *Config) *Config {
|
func SetConfig(url string, name string, point string) *Config {
|
||||||
instance = config
|
instance = &Config{
|
||||||
|
MongoURL: url,
|
||||||
|
DCNAME: name,
|
||||||
|
DBPOINT: point,
|
||||||
|
}
|
||||||
return instance
|
return instance
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user