Documentation ¶
Index ¶
- type Interface
- type RESTClient
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { Create(relativeUrl string, contentType string, payload []byte) (*http.Response, error) Put(relativeUrl string, contentType string, payload []byte) (*http.Response, error) Get(relativeUrl string) (*http.Response, error) Delete(relativeUrl string) error Proxy(method string, relativeUrl string, payload []byte) (*http.Response, error) ServerInfo() (*http.Response, error) ServerURL() string }
func NewRESTClient ¶
type RESTClient ¶
type RESTClient struct {
// contains filtered or unexported fields
}
func (*RESTClient) Delete ¶
func (c *RESTClient) Delete(relativeUrl string) error
func (*RESTClient) ServerInfo ¶
func (c *RESTClient) ServerInfo() (*http.Response, error)
func (*RESTClient) ServerURL ¶
func (c *RESTClient) ServerURL() string
Click to show internal directories.
Click to hide internal directories.