Versions in this module Expand all Collapse all v3 v3.1.0 Jun 11, 2019 v3.0.0 Jun 10, 2019 Changes in this version + var EmptyHTTPParameters = make(HTTPParameters) + type HTTPParameters map[string]string + type IHTTPClient interface + Do func(req *http.Request) (*http.Response, error) + type IRestClient interface + BuildURL func(query string) string + ConvertMapToQueryString func(m HTTPParameters) string + ConvertParametersToReader func(parameters HTTPParameters) io.Reader + CreateRequest func(query, method string, body io.Reader, authorization string) (*http.Request, error) + ExecuteRequest func(request *http.Request) (*http.Response, error) + GetResponseBytes func(response *http.Response) []byte + GetResponseJSON func(response *http.Response, receiver interface{}) error + GetResponseString func(response *http.Response) string + type RestClient struct + BaseURL string + HTTPClient IHTTPClient + func (c *RestClient) BuildURL(query string) string + func (c *RestClient) ConvertMapToQueryString(m HTTPParameters) string + func (c *RestClient) ConvertParametersToReader(parameters HTTPParameters) io.Reader + func (c *RestClient) CreateRequest(query, method string, body io.Reader, authorization string) (*http.Request, error) + func (c *RestClient) ExecuteRequest(request *http.Request) (*http.Response, error) + func (c *RestClient) GetResponseBytes(response *http.Response) []byte + func (c *RestClient) GetResponseJSON(response *http.Response, receiver interface{}) error + func (c *RestClient) GetResponseString(response *http.Response) string Other modules containing this package github.com/app-nerds/kit/v4 github.com/app-nerds/kit/v5 github.com/app-nerds/kit/v6