lock.go 126 B

12345678910
  1. package lock
  2. import "sync"
  3. type Locker interface {
  4. GetLock(key string) *sync.Mutex
  5. Lock(key string)
  6. UnLock(key string)
  7. }