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

Method Lock

middleware/idempotency/locker.go:9–9  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

7// Locker implements a spinlock for a string key.
8type Locker interface {
9 Lock(key string) error
10 Unlock(key string) error
11}
12

Callers 15

ReadMethod · 0.65
WriteMethod · 0.65
CloseMethod · 0.65
testGracefulShutdownFunction · 0.65
deleteRouteMethod · 0.65
addRouteMethod · 0.65
ensureAutoHeadRoutesMethod · 0.65
RebuildTreeMethod · 0.65
mountMethod · 0.65
mountMethod · 0.65
NameMethod · 0.65

Implementers 2

stubLockmiddleware/idempotency/stub_test.go
MemoryLockmiddleware/idempotency/locker.go

Calls

no outgoing calls

Tested by 15

testGracefulShutdownFunction · 0.52
withCapturedLogOutputFunction · 0.52
NowMethod · 0.52
AddMethod · 0.52
SetWithContextMethod · 0.52
DeleteWithContextMethod · 0.52
ResetWithContextMethod · 0.52
GetWithContextMethod · 0.52
SetWithContextMethod · 0.52
DeleteWithContextMethod · 0.52