update the registration interface
This commit is contained in:
parent
9155dc0c56
commit
ba5b1dbfc3
4 changed files with 30 additions and 6 deletions
|
|
@ -34,7 +34,13 @@ const DefaultDBName = "cayley"
|
|||
const QuadStoreType = "mongo"
|
||||
|
||||
func init() {
|
||||
graph.RegisterQuadStore(QuadStoreType, true, newQuadStore, createNewMongoGraph, nil)
|
||||
graph.RegisterQuadStore(QuadStoreType, graph.QuadStoreRegistration{
|
||||
NewFunc: newQuadStore,
|
||||
NewForRequestFunc: nil,
|
||||
UpgradeFunc: nil,
|
||||
InitFunc: createNewMongoGraph,
|
||||
IsPersistent: true,
|
||||
})
|
||||
}
|
||||
|
||||
var (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue