sync

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mutex

type Mutex struct {
	Name    string
	Timeout time.Duration
	// contains filtered or unexported fields
}

func New

func New(redis *redis.Client) *Mutex

func (*Mutex) GetOffset

func (m *Mutex) GetOffset() (string, error)

func (*Mutex) Lock

func (m *Mutex) Lock()

func (*Mutex) NLock

func (m *Mutex) NLock() bool

func (*Mutex) SetOffset

func (m *Mutex) SetOffset(value string)

func (*Mutex) UnLock

func (m *Mutex) UnLock()

Jump to

Keyboard shortcuts

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