Versions in this module Expand all Collapse all v1 v1.0.1 Aug 15, 2024 Changes in this version + type DLock struct + func New(lockKey string, locklostCallback func(), ops ...OpOption) (*DLock, error) + func (l *DLock) Close() error + func (l *DLock) IsOwner() (bool, error) + func (l *DLock) Key() string + func (l *DLock) Lock(ctx context.Context) error + func (l *DLock) Unlock() error + func (l *DLock) UnlockAndClose() error + type OpOption func(*option) + func WithTTL(ttl int) OpOption