Home / Function/ newCountingFailStorage() — fiber Function Reference

newCountingFailStorage() — fiber Function Reference

Architecture documentation for the newCountingFailStorage() function in limiter_test.go from the fiber codebase.

Function go FiberMiddleware Session calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  b2c663be_ed98_dfde_f570_7653b6703dc2["newCountingFailStorage()"]
  0509da96_221e_0d0d_fe2e_f2e2e3695b6f["limiter_test.go"]
  b2c663be_ed98_dfde_f570_7653b6703dc2 -->|defined in| 0509da96_221e_0d0d_fe2e_f2e2e3695b6f
  34605938_41ba_2afe_acbe_4e50b8e9ae26["TestLimiterFixedStorageSetErrorOnSkipSuccessfulRequests()"]
  34605938_41ba_2afe_acbe_4e50b8e9ae26 -->|calls| b2c663be_ed98_dfde_f570_7653b6703dc2
  7ddb57c0_b979_4c6c_5a2c_454e23b18dd2["newFailingLimiterStorage()"]
  b2c663be_ed98_dfde_f570_7653b6703dc2 -->|calls| 7ddb57c0_b979_4c6c_5a2c_454e23b18dd2
  style b2c663be_ed98_dfde_f570_7653b6703dc2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

middleware/limiter/limiter_test.go lines 44–50

func newCountingFailStorage(failAfterN int, err error) *countingFailStorage {
	return &countingFailStorage{
		failingLimiterStorage: newFailingLimiterStorage(),
		failAfterN:            failAfterN,
		setFailErr:            err,
	}
}

Subdomains

Frequently Asked Questions

What does newCountingFailStorage() do?
newCountingFailStorage() is a function in the fiber codebase, defined in middleware/limiter/limiter_test.go.
Where is newCountingFailStorage() defined?
newCountingFailStorage() is defined in middleware/limiter/limiter_test.go at line 44.
What does newCountingFailStorage() call?
newCountingFailStorage() calls 1 function(s): newFailingLimiterStorage.
What calls newCountingFailStorage()?
newCountingFailStorage() is called by 1 function(s): TestLimiterFixedStorageSetErrorOnSkipSuccessfulRequests.

Analyze Your Own Codebase

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

Try Supermodel Free