etcd

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDLock

func NewDLock() (dlock.DLock, error)

Types

type DB

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

func (*DB) IsHoldLock

func (d *DB) IsHoldLock(key string) bool

func (*DB) Lock

func (d *DB) Lock(key string, ttl int64) error

func (*DB) Renew

func (d *DB) Renew(key string) error

func (*DB) TryLock

func (d *DB) TryLock(key string, ttl int64) error

func (*DB) Unlock

func (d *DB) Unlock(key string) error

Jump to

Keyboard shortcuts

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