func (queueHandler *QueueHandler) InQueue(responseWriter http.ResponseWriter, request *http.Request) {
	id := getPlayerID(request)
	log.Info("InQueue request")
	inQueue := data.InQueue(id)
	err := json.NewEncoder(responseWriter).Encode(inQueue)
	if err != nil {
		log.Error(err, "Error serializing inQueue")
		http.Error(responseWriter, "Unable to marshal json", http.StatusInternalServerError)
	}
}
// InQueue returns a bool that verifies that a player is queued
InQueue returns a bool that verifies that a player is queued
// InQueue returns a bool that verifies that a player is queued
func (queueHandler *QueueHandler) InQueue(responseWriter http.ResponseWriter, request *http.Request) {
	id := getPlayerID(request)
	log.Info("InQueue request")
	inQueue := data.InQueue(id)
	err := json.NewEncoder(responseWriter).Encode(inQueue)
	if err != nil {
		log.Error(err, "Error serializing inQueue")
		http.Error(responseWriter, "Unable to marshal json", http.StatusInternalServerError)
	}
}
func ( queueHandler * QueueHandler ) InQueue ( responseWriter http . ResponseWriter , request * http . Request ) { id := getPlayerID ( request ) log . Info ( " " ) inQueue := data . InQueue ( id ) err := json . NewEncoder ( responseWriter ) . Encode ( inQueue ) if err != nil { log . Error ( err , " " ) http . Error ( responseWriter , " " , http . StatusInternalServerError ) } }
InQueue returns a bool that verifies that a player is queued
InQueue returns a bool that verifies that a player is queued