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

Function sharedStateCodecPanicError

shared_state.go:408–414  ·  view source on GitHub ↗
(operation, format string, recovered any)

Source from the content-addressed store, hash-verified

406}
407
408func sharedStateCodecPanicError(operation, format string, recovered any) error {
409 if err, ok := recovered.(error); ok {
410 return fmt.Errorf("fiber: failed to %s shared state %s value: %w", operation, format, err)
411 }
412
413 return fmt.Errorf("fiber: failed to %s shared state %s value: %v", operation, format, recovered)
414}
415
416func (s *SharedState) storageKey(key string) (string, bool) {
417 if key == "" {

Callers 2

encodeSharedStateValueFunction · 0.85
decodeSharedStateValueFunction · 0.85

Calls 1

ErrorfMethod · 0.65

Tested by

no test coverage detected