/*
GetJobFromQueue gets the next job from the queue via the API.
*/
GetJobFromQueue gets the next job from the queue via the API.
/ * GetJobFromQueue gets the next job from the queue via the API . * /
func GetJobFromQueue() (*QueueResponse, error) {
	client := &http.Client{}
	responseModel := QueueResponse{}
	res, err := client.Get(Host + "/queues/" + Queue + "/next")
	if err != nil {
		return nil, err
	}
	respBody := res.Body
	defer respBody.Close()
	if err := json.NewDecoder(respBody).Decode(&responseModel); err != nil {
		return nil, err
	}
	return &responseModel, nil
}
func GetJobFromQueue ( ) ( * QueueResponse , error ) { client := & http . Client { } responseModel := QueueResponse { } res , err := client . Get ( Host + " " + Queue + " " ) if err != nil { return nil , err } respBody := res . Body defer respBody . Close ( ) if err := json . NewDecoder ( respBody ) . Decode ( & responseModel ) ; err != nil { return nil , err } return & responseModel , nil }
GetJobFromQueue gets the next job from the queue via the API.
GetJobFromQueue gets the next job from the queue via the API .