Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrEntry ¶
type ErrEntry struct {
// contains filtered or unexported fields
}
ErrEntry is used for logging retries and the result of retries.
type FailAwareHTTPClient ¶
type FailAwareHTTPClient struct {
// contains filtered or unexported fields
}
FailAwareHTTPClient is the extendes HTTP client. It provides the same methods as the http.Client.
func NewClient ¶
func NewClient(options FailAwareHTTPOptions) *FailAwareHTTPClient
NewClient creates a new FFailAwareHTTP client.
func NewDefaultClient ¶
func NewDefaultClient() *FailAwareHTTPClient
NewDefaultClient creates a FailAwareHTTP client with defaultOptions.
func (*FailAwareHTTPClient) Do ¶
Do sends an arbitrary request and retries in the case of an retrieable error
type FailAwareHTTPError ¶
FailAwareHTTPError structured error returned by the FailAwareHTTP methods.
func (FailAwareHTTPError) Error ¶
func (e FailAwareHTTPError) Error() string
type FailAwareHTTPOptions ¶
type FailAwareHTTPOptions struct { MaxRetries int Timeout time.Duration BackOffDelayFactor time.Duration KeepLog bool Logger Logger }
FailAwareHTTPOptions are the options for the FFailAwareHttp client. See NewClient(options) and ddefaultOptions.
func NewDefaultOptions ¶
func NewDefaultOptions() FailAwareHTTPOptions
NewDefaultOptions creates new default options for the client.
Click to show internal directories.
Click to hide internal directories.