Documentation
¶
Index ¶
- func Delete(key string)
- func Lock(key, identifier string)
- func LockWithContext(ctx context.Context, key, identifier string) error
- func LockedBy(key string) (string, bool)
- func RegisterLocker(lock Locker) error
- func TryLock(key, identifier string) (ok bool)
- func Unlock(key string, remove bool)
- type InstanceDeleteBackoff
- type Locker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterLocker ¶
Types ¶
type InstanceDeleteBackoff ¶
type InstanceDeleteBackoff interface {
ShouldProcess(key string) (bool, time.Time)
Delete(key string)
RecordFailure(key string)
}
func NewInstanceDeleteBackoff ¶
func NewInstanceDeleteBackoff(_ context.Context) (InstanceDeleteBackoff, error)
Click to show internal directories.
Click to hide internal directories.