Documentation ¶
Index ¶
- type Locker
- func (l *Locker) ForceRelease(ctx context.Context) error
- func (l *Locker) LockedOwner(ctx context.Context) (string, error)
- func (l *Locker) Owner() string
- func (l *Locker) Release(ctx context.Context) (bool, error)
- func (l *Locker) Try(ctx context.Context, fn func() error) error
- func (l *Locker) Until(ctx context.Context, timeout time.Duration, fn func() error) error
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Locker)
func WithSeconds
deprecated
func WithTimeout ¶ added in v2.17.0
Click to show internal directories.
Click to hide internal directories.