accessor
This commit is contained in:
15
entrypoint.go
Normal file
15
entrypoint.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package oclib
|
||||
|
||||
import (
|
||||
"cloud.o-forge.io/core/oc-lib/dbs/mongo"
|
||||
"cloud.o-forge.io/core/oc-lib/models"
|
||||
"cloud.o-forge.io/core/oc-lib/models/utils"
|
||||
)
|
||||
|
||||
func Init() {
|
||||
mongo.MONGOService.Init(models.GetModelsNames(), GetConfig())
|
||||
}
|
||||
|
||||
func Model(name string) utils.DBObject {
|
||||
return models.Model(name)
|
||||
}
|
||||
Reference in New Issue
Block a user