drive_etcd

package
v0.0.0-...-83a32b7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEtcdLocker

func NewEtcdLocker(config etcdClient.Config, opts ...lock.LockerOpt) (lock.Locker, error)

Types

type Lock

type Lock struct {
	*sync.Mutex
	// contains filtered or unexported fields
}

func (*Lock) Release

func (l *Lock) Release() error

type Locker

type Locker struct {
	// contains filtered or unexported fields
}

func (*Locker) Acquire

func (locker *Locker) Acquire(key string, opts ...lock.LockerOpt) (lock.Lock, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL