func NewUserGobDB() *UserGobDB { return &UserGobDB{ DB: GobDB.NewDB("users", func() interface{} { var user User; return &user }), } }
func NewBagageGobDB() *BagageGobDB { return &BagageGobDB{ DB: GobDB.NewDB("bagages", func() interface{} { var b Bagage; return &b }), } }
func NewGameRecordDB() *GameRecordDB { return &GameRecordDB{ DB: GobDB.NewDB("records", func() interface{} { var record GameScoreRecord; return &record }), } }
func NewCarGobDB(bagageDB *BagageGobDB) *CarGobDB { return &CarGobDB{ DB: GobDB.NewDB("cars", func() interface{} { var car Car; return &car }), bagages: bagageDB, } }
func NewUserGobDB(carDB *CarGobDB) *UserGobDB { return &UserGobDB{ DB: GobDB.NewDB("users", func() interface{} { var user User; return &user }), Cars: carDB, } }