simplify call to peer
This commit is contained in:
parent
745fc7779e
commit
98fa1f6ca8
@ -4,7 +4,6 @@ import (
|
|||||||
"cloud.o-forge.io/core/oc-lib/logs"
|
"cloud.o-forge.io/core/oc-lib/logs"
|
||||||
|
|
||||||
"cloud.o-forge.io/core/oc-lib/models/booking"
|
"cloud.o-forge.io/core/oc-lib/models/booking"
|
||||||
"cloud.o-forge.io/core/oc-lib/models/discovery"
|
|
||||||
"cloud.o-forge.io/core/oc-lib/models/peer"
|
"cloud.o-forge.io/core/oc-lib/models/peer"
|
||||||
"cloud.o-forge.io/core/oc-lib/models/resource_model"
|
"cloud.o-forge.io/core/oc-lib/models/resource_model"
|
||||||
d "cloud.o-forge.io/core/oc-lib/models/resources/data"
|
d "cloud.o-forge.io/core/oc-lib/models/resources/data"
|
||||||
@ -34,7 +33,6 @@ var models = map[string]func() utils.DBObject{
|
|||||||
utils.SHARED_WORKSPACE.String(): func() utils.DBObject { return &shared_workspace.SharedWorkspace{} },
|
utils.SHARED_WORKSPACE.String(): func() utils.DBObject { return &shared_workspace.SharedWorkspace{} },
|
||||||
utils.RULE.String(): func() utils.DBObject { return &rule.Rule{} },
|
utils.RULE.String(): func() utils.DBObject { return &rule.Rule{} },
|
||||||
utils.BOOKING.String(): func() utils.DBObject { return &booking.Booking{} },
|
utils.BOOKING.String(): func() utils.DBObject { return &booking.Booking{} },
|
||||||
utils.DISCOVERY.String(): func() utils.DBObject { return &discovery.Discovery{} },
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func Model(model int) utils.DBObject {
|
func Model(model int) utils.DBObject {
|
||||||
|
Loading…
Reference in New Issue
Block a user