Home / Type/ Config Type — fiber Architecture

Config Type — fiber Architecture

Architecture documentation for the Config type/interface in config.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  4e124df0_2bc5_94ab_1afb_667e40608137["Config"]
  375cf52c_a275_c066_8b6b_9b79f51587e5["config.go"]
  4e124df0_2bc5_94ab_1afb_667e40608137 -->|defined in| 375cf52c_a275_c066_8b6b_9b79f51587e5
  style 4e124df0_2bc5_94ab_1afb_667e40608137 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

addon/retry/config.go lines 8–35

type Config struct {
	// InitialInterval defines the initial time interval for backoff algorithm.
	//
	// Optional. Default: 1 * time.Second
	InitialInterval time.Duration

	// MaxBackoffTime defines maximum time duration for backoff algorithm. When
	// the algorithm is reached this time, rest of the retries will be maximum
	// 32 seconds.
	//
	// Optional. Default: 32 * time.Second
	MaxBackoffTime time.Duration

	// Multiplier defines multiplier number of the backoff algorithm.
	//
	// Optional. Default: 2.0
	Multiplier float64

	// MaxRetryCount defines maximum retry count for the backoff algorithm.
	//
	// Optional. Default: 10
	MaxRetryCount int

	// currentInterval tracks the current waiting time.
	//
	// Optional. Default: 1 * time.Second
	currentInterval time.Duration
}

Frequently Asked Questions

What is the Config type?
Config is a type/interface in the fiber codebase, defined in addon/retry/config.go.
Where is Config defined?
Config is defined in addon/retry/config.go at line 8.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free