Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Locker ¶
type Locker interface {
Trylock(ctx context.Context, key string, ops ...Options) (Unlocker, context.Context, error)
}
Locker is an interface that have a trylock method. It will lock on the specific key, different key will not be interfered.
Click to show internal directories.
Click to hide internal directories.