update the registration interface

This commit is contained in:
Barak Michener 2015-06-23 14:11:03 -04:00
parent 9155dc0c56
commit ba5b1dbfc3
4 changed files with 30 additions and 6 deletions

View file

@ -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 (