func NewClient(host string, path string, timeout time.Duration) *Client {
	log.Debug("Creating a new instance of the Mesos plugin HTTP client")
	return &Client{
		httpClient: &http.Client{Timeout: timeout},
		host:       host,
		path:       path,
	}
}
Return a new instance of Client.
package client
import (
	"encoding/json"
	"fmt"
	"io/ioutil"
	"net/http"
	"net/url"
	"time"
	log "github.com/Sirupsen/logrus"
)
type Client struct {
	httpClient *http.Client
	host       string
	path       string
}