keylock

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2024 License: Apache-2.0 Imports: 1 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
}

func NewKeyLock

func NewKeyLock() *KeyLock

func (*KeyLock) Lock

func (l *KeyLock) Lock(key string) UnlockFunc

func (*KeyLock) LockMain

func (l *KeyLock) LockMain() UnlockFunc

func (*KeyLock) RLock

func (l *KeyLock) RLock(key string) UnlockFunc

func (*KeyLock) RLockMain

func (l *KeyLock) RLockMain() UnlockFunc

type UnlockFunc

type UnlockFunc func()

Jump to

Keyboard shortcuts

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