Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter interface { Acquire(ctx context.Context, key string) Acquiref(ctx context.Context, format string, a ...any) Release(ctx context.Context, key string) Releasef(ctx context.Context, format string, a ...any) }
Adapter provides interface for abstracting distributedmutex generation.
func NewAdapter ¶
NewAdapter constructor that returns the default DistributedLocker generator.
Click to show internal directories.
Click to hide internal directories.