package
Version:
v0.3.0
Opens a new window with list of versions in this module.
Published: Dec 7, 2022
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 3
Opens a new window with list of known importers.
Documentation
¶
Package api provides the functions to work with SiteHost API.
CheckResponse checks the API response for errors, and returns them if present.
A response is considered an error if it has a status code outside the 200 range or if the Status is false.
Client is a wrapper around the http client to manages communication with SiteHost API.
New returns a new SiteHost API client instance.
NewClient factory to create new Client struct.
Do sends an API Request and returns the response.
The API response is checked to see if it was a successful call.
A successful call is then checked to see if we have a Status true.
NewRequest creates an SiteHost API Request.
ClientOpt function parameters to configure a Client.
SetBaseURL change the default BaseURL.
Source Files
¶
Directories
¶
Package job represents our SiteHost `/job` endpoint
|
Package job represents our SiteHost `/job` endpoint |
Package server represents our SiteHost `/server` API endpoint.
|
Package server represents our SiteHost `/server` API endpoint. |
Click to show internal directories.
Click to hide internal directories.