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

Method GetWithContext

shared_state_test.go:78–83  ·  shared_state_test.go::contextCheckingStorage.GetWithContext
(ctx context.Context, key string)

Source from the content-addressed store, hash-verified

76}
77
78func (s *contextCheckingStorage) GetWithContext(ctx context.Context, key string) ([]byte, error) {
79 if ctx.Value(s.ctxKey) == nil {
80 return nil, errors.New("context value not found")
81 }
82 return s.base.GetWithContext(ctx, key)
83}
84
85func (s *contextCheckingStorage) DeleteWithContext(ctx context.Context, key string) error {
86 if ctx.Value(s.ctxKey) == nil {

Callers 1

GetMethod · 0.95

Calls 3

ValueMethod · 0.65
NewMethod · 0.65
GetWithContextMethod · 0.65

Tested by

no test coverage detected