filemutex

package
v0.0.0-...-67aceb4 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMutexConversion = errors.New("failed to convert cached value to mutex")

Functions

This section is empty.

Types

type MutexCache

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

func NewMutexCache

func NewMutexCache(concurrMap *sync.Map) *MutexCache

func (*MutexCache) GetLocker

func (m *MutexCache) GetLocker(key string) (sync.Locker, error)

GetLocker always returns the same sync.Locker instance for a given key.

Jump to

Keyboard shortcuts

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