Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPOptions ¶
type HTTPOptions struct { Endpoint string Body io.Reader Headers http.Header Params url.Values // Ref: https://github.com/cenkalti/backoff/blob/a78d3804c2c84f0a3178648138442c9b07665bda/exponential.go#L76 // DefaultInitialInterval = 500 * time.Millisecond // DefaultRandomizationFactor = 0.5 // DefaultMultiplier = 1.5 // DefaultMaxInterval = 60 * time.Second // DefaultMaxElapsedTime = 15 * time.Minute ExponentialBackoff *backoff.ExponentialBackOff }
type HttpClient ¶
type HttpClient struct {
// contains filtered or unexported fields
}
func New ¶
func New( serviceUrl string, options HTTPOptions, ) (*HttpClient, error)
Click to show internal directories.
Click to hide internal directories.