Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrAlreadyLocked ¶
type ErrAlreadyLocked struct{}
func (*ErrAlreadyLocked) Error ¶
func (e *ErrAlreadyLocked) Error() string
type EtcdLocker ¶
type EtcdLocker struct {
// contains filtered or unexported fields
}
func (*EtcdLocker) Wait ¶
func (locker *EtcdLocker) Wait(key string) error
func (*EtcdLocker) WaitAcquire ¶
func (locker *EtcdLocker) WaitAcquire(key string, ttl int) (Lock, error)
type EtcdLockerOpt ¶
type EtcdLockerOpt func(locker *EtcdLocker)
func WithCooldownTryLockDuration ¶
func WithCooldownTryLockDuration(timeout time.Duration) EtcdLockerOpt
func WithMaxTryLockTimeout ¶
func WithMaxTryLockTimeout(timeout time.Duration) EtcdLockerOpt
func WithTryLockTimeout ¶
func WithTryLockTimeout(timeout time.Duration) EtcdLockerOpt
Click to show internal directories.
Click to hide internal directories.