distributedlocker

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: BSD-3-Clause Imports: 2 Imported by: 0

README

Distributed Locker

Simple Distributed Lock Library written in Golang.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Locker

type Locker struct {
	LockService interfaces.LockService
}

func NewLocker

func NewLocker(client interfaces.LockService) *Locker

func (*Locker) Acquire

func (dl *Locker) Acquire(lock *lib.Lock) error

func (*Locker) Lock

func (dl *Locker) Lock() *lib.Lock

func (*Locker) Release

func (dl *Locker) Release(lock *lib.Lock)

Directories

Path Synopsis
examples
memcached command
redis command

Jump to

Keyboard shortcuts

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