Documentation ¶
Index ¶
- type Etcdv3Locker
- func (s *Etcdv3Locker) Close()
- func (s *Etcdv3Locker) Delete(lockKey *distlock.LockKey)
- func (s *Etcdv3Locker) Exists(lockKey *distlock.LockKey) bool
- func (s *Etcdv3Locker) Get(lockKey *distlock.LockKey) string
- func (s *Etcdv3Locker) Keep(lockKey *distlock.LockKey, val string, expire time.Duration)
- func (s *Etcdv3Locker) Set(lockKey *distlock.LockKey, val string, expire time.Duration)
- func (s *Etcdv3Locker) SetIfAbsent(lockKey *distlock.LockKey, val string, expire time.Duration) bool
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Etcdv3Locker ¶
func (*Etcdv3Locker) Close ¶
func (s *Etcdv3Locker) Close()
func (*Etcdv3Locker) Delete ¶
func (s *Etcdv3Locker) Delete(lockKey *distlock.LockKey)
func (*Etcdv3Locker) SetIfAbsent ¶
Click to show internal directories.
Click to hide internal directories.