10 lines
126 B
Go
10 lines
126 B
Go
package lock
|
|
|
|
import "sync"
|
|
|
|
type Locker interface {
|
|
GetLock(key string) *sync.Mutex
|
|
Lock(key string)
|
|
UnLock(key string)
|
|
}
|