first
This commit is contained in:
9
lib/lock/lock.go
Normal file
9
lib/lock/lock.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package lock
|
||||
|
||||
import "sync"
|
||||
|
||||
type Locker interface {
|
||||
GetLock(key string) *sync.Mutex
|
||||
Lock(key string)
|
||||
UnLock(key string)
|
||||
}
|
||||
Reference in New Issue
Block a user