MCPcopy
hub / github.com/RichardKnop/machinery / Lock

Interface Lock

v2/locks/iface/interfaces.go:3–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1package iface
2
3type Lock interface {
4 //Acquire the lock with retry
5 //key: the name of the lock,
6 //value: at the nanosecond timestamp that lock needs to be released automatically
7 LockWithRetries(key string, value int64) error
8
9 //Acquire the lock with once
10 //key: the name of the lock,
11 //value: at the nanosecond timestamp that lock needs to be released automatically
12 Lock(key string, value int64) error
13}

Callers

nothing calls this directly

Implementers 4

Lockv2/locks/eager/eager.go
Lockv2/locks/redis/redis.go
Lockv1/locks/eager/eager.go
Lockv1/locks/redis/redis.go

Calls

no outgoing calls

Tested by

no test coverage detected