Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RetryConfig ¶
type RetryConfig struct { Min time.Duration `help:"Minimum retry interval" default:"100ms"` Max time.Duration `help:"Maximum retry interval" default:"10s"` Factor float64 `help:"Factor to multiply the retry interval by" default:"2"` Jitter bool `help:"Whether to add jitter to the retry interval" default:"true"` }
RetryConfig is a Kong compatible configuration for creating backoff.Backoff instances.
func (*RetryConfig) Backoff ¶
func (c *RetryConfig) Backoff() *backoff.Backoff
Click to show internal directories.
Click to hide internal directories.