Documentation ¶ Index ¶ func NewClient(options Options) *nethttp.Client type Options type RetryTransport func (t *RetryTransport) RoundTrip(request *nethttp.Request) (*nethttp.Response, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewClient ¶ func NewClient(options Options) *nethttp.Client Types ¶ type Options ¶ type Options struct { Timeout time.Duration MaxRetries int Backoff time.Duration Transport nethttp.RoundTripper } type RetryTransport ¶ type RetryTransport struct { Base nethttp.RoundTripper MaxRetries int Backoff time.Duration } func (*RetryTransport) RoundTrip ¶ func (t *RetryTransport) RoundTrip(request *nethttp.Request) (*nethttp.Response, error) Source Files ¶ View all Source files client.goretry.go Click to show internal directories. Click to hide internal directories.