keylock

package
v0.0.0-...-643498a Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyLock

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

KeyLock KeyLock

func NewKeyLock

func NewKeyLock() *KeyLock

NewKeyLock NewKeyLock

func (*KeyLock) Clean

func (l *KeyLock) Clean()

Clean 清理空闲锁

func (*KeyLock) Lock

func (l *KeyLock) Lock(key string)

Lock 根据关键字加锁

func (*KeyLock) StartCleanLoop

func (l *KeyLock) StartCleanLoop()

StartCleanLoop 开启清理协程

func (*KeyLock) StopCleanLoop

func (l *KeyLock) StopCleanLoop()

StopCleanLoop 停止清理协程

func (*KeyLock) Unlock

func (l *KeyLock) Unlock(key string)

Unlock 根据关键字解锁

Jump to

Keyboard shortcuts

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