func GetTurnsByParent(c common.Context, parent *datastore.Key) (result Turns) { common.Memoize(c, turnsKeyForParent(parent), &result, func() interface{} { return findTurnsByParent(c, parent) }) sort.Sort(result) return result.process(c) }
func GetAllAIs(c common.Context) (result AIs) { common.Memoize(c, AllAIsKey, &result, func() interface{} { return findAllAIs(c) }) sort.Sort(result) return result.process(c) }
func (self *AI) GetErrors(c common.Context) (result AIErrors) { common.Memoize(c, aiErrorsKeyByParent(self.Id), &result, func() interface{} { return self.findErrors(c) }) sort.Sort(result) return result.process(c) }
func GetLatestTurnByParent(c common.Context, parent *datastore.Key) *Turn { var result Turn if common.Memoize(c, latestTurnKeyForParent(parent), &result, func() interface{} { return findLatestTurnByParent(c, parent) }) { return (&result).process(c) } return nil }
func getGameById(c common.Context, id *datastore.Key) *Game { var game Game if common.Memoize(c, gameKeyForId(id), &game, func() interface{} { return findGameById(c, id) }) { return &game } return nil }
func GetAIById(c common.Context, id *datastore.Key) *AI { var ai AI if common.Memoize(c, aIByIdKey(id), &ai, func() interface{} { return findAIById(c, id) }) { return &ai } return nil }