Duration Type — fiber Architecture
Architecture documentation for the Duration type/interface in exponential_backoff.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 359f396e_0f1b_4d5b_4327_c96227cce00e["Duration"] 8d9e2d11_b2e2_c9a3_6b3e_0aab1fd11114["exponential_backoff.go"] 359f396e_0f1b_4d5b_4327_c96227cce00e -->|defined in| 8d9e2d11_b2e2_c9a3_6b3e_0aab1fd11114 style 359f396e_0f1b_4d5b_4327_c96227cce00e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
addon/retry/exponential_backoff.go lines 10–26
type ExponentialBackoff struct {
// InitialInterval is the initial time interval for backoff algorithm.
InitialInterval time.Duration
// MaxBackoffTime is the maximum time duration for backoff algorithm. It limits
// the maximum sleep time.
MaxBackoffTime time.Duration
// Multiplier is a multiplier number of the backoff algorithm.
Multiplier float64
// MaxRetryCount is the maximum number of retry count.
MaxRetryCount int
// currentInterval tracks the current sleep time.
currentInterval time.Duration
}
Defined In
Source
Frequently Asked Questions
What is the Duration type?
Duration is a type/interface in the fiber codebase, defined in addon/retry/exponential_backoff.go.
Where is Duration defined?
Duration is defined in addon/retry/exponential_backoff.go at line 10.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free