dmutex

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: May 21, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DMutexEtcd

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

func NewDMutexEtcd

func NewDMutexEtcd(c *etcdclient.Client, timeout int) *DMutexEtcd

func (*DMutexEtcd) Lock

func (m *DMutexEtcd) Lock(pfx string) (*concurrency.Mutex, error)

func (*DMutexEtcd) Unlock

func (m *DMutexEtcd) Unlock(mi *concurrency.Mutex) error

Jump to

Keyboard shortcuts

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