Documentation ¶
Index ¶
Constants ¶
View Source
const (
// DefaultRetryCount is the default number of retries.
DefaultRetryCount = 3
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*options)
Option is a functional option for customizing static signatures.
func WithLogger ¶
func WithLogger(logger interface{}) Option
WithLogger sets the logger; it must implement either retryablehttp.Logger or retryablehttp.LeveledLogger; if not, this will not take effect.
func WithRetryCount ¶
WithRetryCount sets the number of retries.
func WithUserAgent ¶
WithUserAgent sets the media type of the signature.
Click to show internal directories.
Click to hide internal directories.