Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 ¶ added in v3.4.1
type EtcdLockerOpt func(locker *EtcdLocker)
func WithTrylockTimeout ¶ added in v3.4.1
func WithTrylockTimeout(timeout time.Duration) EtcdLockerOpt
Click to show internal directories.
Click to hide internal directories.