package
Version:
v0.0.1
Opens a new window with list of versions in this module.
Published: Dec 11, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
HandleHTTPError catches HTTP errors and prints them out
Client facilitates making HTTP requests to the Karma API
NewClient returns an authenticated client
Get makes a GET request to API server and assign response to data struct
Post makes a POST request to server
type HTTPError struct {
StatusCode int
RequestURL *url.URL
Message string
}
HTTPError is an error returned by a failed API call
Source Files
¶
Click to show internal directories.
Click to hide internal directories.