Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrHttpMovedPermanently = errors.New("moved permanently")
Functions ¶
func NewClient ¶
func NewClient(opts ...ClientOption) *retryablehttp.Client
Types ¶
type ClientOption ¶
type ClientOption func(*retryablehttp.Client)
func WithErrorIfMovedPermanently ¶
func WithErrorIfMovedPermanently() ClientOption
func WithLogger ¶
func WithLogger(logger interface{}) ClientOption
func WithPassthroughErrorHandler ¶
func WithPassthroughErrorHandler() ClientOption
Click to show internal directories.
Click to hide internal directories.