Versions in this module Expand all Collapse all v1 v1.8.1 Mar 10, 2020 Changes in this version + type Interface interface + Create func(relativeUrl string, contentType string, payload []byte) (*http.Response, error) + Delete func(relativeUrl string) error + Get func(relativeUrl string) (*http.Response, error) + Proxy func(method string, relativeUrl string, payload []byte) (*http.Response, error) + Put func(relativeUrl string, contentType string, payload []byte) (*http.Response, error) + ServerInfo func() (*http.Response, error) + ServerURL func() string + func NewRESTClient(serverUrl string) Interface + type RESTClient struct + func (c *RESTClient) Create(relativeUrl string, contentType string, payload []byte) (*http.Response, error) + func (c *RESTClient) Delete(relativeUrl string) error + func (c *RESTClient) Get(relativeUrl string) (*http.Response, error) + func (c *RESTClient) Proxy(method string, relativeUrl string, payload []byte) (*http.Response, error) + func (c *RESTClient) Put(relativeUrl string, contentType string, payload []byte) (*http.Response, error) + func (c *RESTClient) ServerInfo() (*http.Response, error) + func (c *RESTClient) ServerURL() string