Versions in this module Expand all Collapse all v2 v2.5.4 Nov 24, 2021 Changes in this version + type Doer interface + Do func(*http.Request) (*http.Response, error) + type Error struct + Code string + Err error + Message string + RetryAfter uint + StatusCode int + func NewError(err error) *Error + func (e *Error) Error() string + func (e *Error) Unwrap() error + type Options struct + func DefaultOptions() *Options + func (o *Options) HTTPClient() *http.Client + func (o *Options) HTTPDoer() Doer + func (o *Options) HTTPRequestTimeout() uint + func (o *Options) OwnHTTPClient() bool + func (o *Options) SetHTTPClient(c *http.Client) *Options + func (o *Options) SetHTTPDoer(d Doer) *Options + func (o *Options) SetHTTPRequestTimeout(httpRequestTimeout uint) *Options + func (o *Options) SetTLSConfig(tlsConfig *tls.Config) *Options + func (o *Options) TLSConfig() *tls.Config + type RequestCallback func(req *http.Request) + type ResponseCallback func(resp *http.Response) error + type Service interface + Authorization func() string + DoHTTPRequest func(req *http.Request, requestCallback RequestCallback, ...) *Error + DoHTTPRequestWithResponse func(req *http.Request, requestCallback RequestCallback) (*http.Response, error) + DoPostRequest func(ctx context.Context, url string, body io.Reader, ...) *Error + ServerAPIURL func() string + ServerURL func() string + SetAuthorization func(authorization string) + func NewService(serverURL, authorization string, httpOptions *Options) Service