MCPcopy
hub / github.com/gofiber/fiber / SetWithContext

Method SetWithContext

middleware/limiter/limiter_test.go:85–91  ·  view source on GitHub ↗
(ctx context.Context, key string, val []byte, exp time.Duration)

Source from the content-addressed store, hash-verified

83}
84
85func (s *countingFailStorage) SetWithContext(ctx context.Context, key string, val []byte, exp time.Duration) error {
86 s.setCount++
87 if s.setCount > s.failAfterN {
88 return s.setFailErr
89 }
90 return s.failingLimiterStorage.SetWithContext(ctx, key, val, exp)
91}
92
93type contextRecord struct {
94 key string

Callers

nothing calls this directly

Calls 1

SetWithContextMethod · 0.65

Tested by

no test coverage detected