lock

package
v2.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LockManager

type LockManager struct {
	// contains filtered or unexported fields
}

func NewLockManager

func NewLockManager(manager storage.LockManager) *LockManager

func (*LockManager) AcquireLock

func (locker *LockManager) AcquireLock(branchSession *apis.BranchSession) bool

func (*LockManager) IsLockable

func (locker *LockManager) IsLockable(xid string, resourceID string, lockKey string) bool

func (*LockManager) ReleaseGlobalSessionLock

func (locker *LockManager) ReleaseGlobalSessionLock(globalTransaction *model.GlobalTransaction) bool

func (*LockManager) ReleaseLock

func (locker *LockManager) ReleaseLock(branchSession *apis.BranchSession) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL