kmutex

package
v0.0.0-...-53e80a7 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: AGPL-3.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 MockProvider

type MockProvider struct {
	mock.Mock
}

MockProvider mocks uuid provider

func (MockProvider) NewProvider

func (m MockProvider) NewProvider() uuid.KSUID

NewProvider returns the mocked uuid

type Provider

type Provider interface {
	Lock(key string)
	Lockf(format string, a ...any)
	Unlock(key string)
	Unlockf(format string, a ...any)
}

Provider provides interface for abstracting KMutex generation.

func NewProvider

func NewProvider() Provider

NewProvider constructor that returns the default KMutex generator.

Jump to

Keyboard shortcuts

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