You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

locker.go 225 B

5 years ago
12345678910111213141516
  1. package lock
  2. import "sync"
  3. var lockManager ILockManager
  4. func init() {
  5. lockManager = &MemoryLocker{
  6. LockMap: &sync.Map{},
  7. BucketHolder: &sync.Map{},
  8. }
  9. }
  10. func GetLockManager() ILockManager {
  11. return lockManager
  12. }

Go Implementation For Seata