func GetGameContext(c *gin.Context) *domain.ContextDefinition {
	gc := c.MustGet(gameContextKey)
	return gc.(*domain.ContextDefinition)
}
예제 #2
0
func getGaeContext(c *gin.Context) appengine.Context {
	gc := c.MustGet(gaeCtxKey)
	return gc.(appengine.Context)
}
예제 #3
0
func getCurrentUserFromGinContext(c *gin.Context) *domain.User {
	usr := c.MustGet(userKey)
	return usr.(*domain.User)
}
예제 #4
0
func GetNamespace(c *gin.Context) string {
	gc := c.MustGet(namespaceKey)
	return gc.(string)
}