melock

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2019 License: MIT Imports: 1 Imported by: 0

README

melock

Distributed Locks using Go and Redis.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisMeLock

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

func Acquire

func Acquire(conn redis.Conn, resource string, identifier string, timeoutSeconds uint) (lock *RedisMeLock, ok bool, err error)

func NewRedisMeLock

func NewRedisMeLock(conn redis.Conn, resource string, identifier string, timeoutSeconds uint) *RedisMeLock

func (*RedisMeLock) Release

func (lock *RedisMeLock) Release() (flag bool, err error)

Jump to

Keyboard shortcuts

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