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

Interface Locker

middleware/idempotency/locker.go:8–11  ·  middleware/idempotency/locker.go::Locker

Locker implements a spinlock for a string key.

Source from the content-addressed store, hash-verified

6
7// Locker implements a spinlock for a string key.
8type Locker interface {
9 Lock(key string) error
10 Unlock(key string) error
11}
12
13type countedLock struct {
14 mu sync.Mutex

Callers 16

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

Implementers 2

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

Calls

no outgoing calls

Tested by

no test coverage detected