access func
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
package utils
|
||||
|
||||
type Driver int
|
||||
|
||||
const (
|
||||
INVALID Driver = iota
|
||||
MONGO
|
||||
)
|
@@ -1,8 +1,11 @@
|
||||
package utils
|
||||
|
||||
import "cloud.o-forge.io/core/oc-lib/utils"
|
||||
|
||||
type DBObject interface {
|
||||
GetName() string
|
||||
GetAccessor(driver Driver) Accessor
|
||||
Deserialize(j map[string]interface{}) DBObject
|
||||
GetAccessor(driver utils.Driver) Accessor
|
||||
}
|
||||
|
||||
type Accessor interface {
|
||||
|
Reference in New Issue
Block a user