Documentation
¶
Index ¶
- Variables
- type APIClient
- func (c *APIClient) DoDELETE(path string) error
- func (c *APIClient) DoGET(path string) ([]byte, error)
- func (c *APIClient) DoPOST(path string, data interface{}) ([]byte, error)
- func (c *APIClient) DoPUT(path string, data interface{}) ([]byte, error)
- func (c *APIClient) People() *peopleClient
- func (c *APIClient) Pet() *petsClient
- type ClientError
- type Config
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorNotFound = &ClientError{fmt.Errorf("not found")}
Functions ¶
This section is empty.
Types ¶
type APIClient ¶
type APIClient struct {
// contains filtered or unexported fields
}
func NewAPIClient ¶
type ClientError ¶
type ClientError struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.