func NewUserGobDB() *UserGobDB {
	return &UserGobDB{
		DB: GobDB.NewDB("users", func() interface{} { var user User; return &user }),
	}
}
Exemple #2
0
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 }),
	}
}
Exemple #4
0
func NewCarGobDB(bagageDB *BagageGobDB) *CarGobDB {
	return &CarGobDB{
		DB:      GobDB.NewDB("cars", func() interface{} { var car Car; return &car }),
		bagages: bagageDB,
	}
}
Exemple #5
0
func NewUserGobDB(carDB *CarGobDB) *UserGobDB {
	return &UserGobDB{
		DB:   GobDB.NewDB("users", func() interface{} { var user User; return &user }),
		Cars: carDB,
	}
}