Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockProvider ¶
MockProvider mocks uuid provider
func (MockProvider) NewKMutex ¶
func (m MockProvider) NewKMutex() uuid.KSUID
NewKMutex 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 NewKeyMutexProvider ¶
func NewKeyMutexProvider() Provider
NewKMutexProvider constructor that returns the default KMutex generator.
Click to show internal directories.
Click to hide internal directories.