keymutex

package
v1.9.6 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyMutex

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

func (*KeyMutex) TryLock

func (k *KeyMutex) TryLock(key interface{}) bool

func (*KeyMutex) UnLock

func (k *KeyMutex) UnLock(key interface{})

func (*KeyMutex) WaitLock

func (k *KeyMutex) WaitLock(key interface{}, timeout time.Duration) bool

type Locker added in v1.5.4

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

func GrabFileLock added in v1.5.4

func GrabFileLock(lockfilePath string) (*Locker, error)

GrabFileLock get file lock with timeout 11seconds

func (*Locker) Close added in v1.5.4

func (l *Locker) Close() error

Close close

Jump to

Keyboard shortcuts

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