Documentation
¶
Index ¶
- type Client
- func (c *Client) Delete(url string, payload interface{}) (*http.Response, []byte, *ErrorResponse)
- func (c *Client) Get(url string) (*http.Response, []byte, *ErrorResponse)
- func (c *Client) GetEndpoint(endpoint string) string
- func (c *Client) Patch(url string, payload interface{}) (*http.Response, []byte, *ErrorResponse)
- func (c *Client) Post(url string, payload interface{}) (*http.Response, []byte, *ErrorResponse)
- func (c *Client) Put(url string, payload interface{}) (*http.Response, []byte, *ErrorResponse)
- func (c *Client) SetServer(server string)
- func (c *Client) SetToken(token string)
- type Config
- type ErrorResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetEndpoint ¶
type ErrorResponse ¶
type ErrorResponse struct {
Code string `json:"code"`
Error string `json:"error"`
Message string `json:"message"`
}
ErrorReponse holds a code and a message parsed from an error resposne from the helmut.cloud platform
func (*ErrorResponse) ToString ¶ added in v0.0.7
func (e *ErrorResponse) ToString() string
Click to show internal directories.
Click to hide internal directories.