optimisticLock

package module
v0.0.0-...-5f13b36 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2018 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lock

type Lock struct {
	Key     string
	Content string
	// contains filtered or unexported fields
}

func (*Lock) Update

func (l *Lock) Update() bool

type LockFactory

type LockFactory struct {
	RedisClient *redis.Client `inject:""`
}

func New

func New(r *redis.Client) *LockFactory

func (*LockFactory) CreateDummyLock

func (f *LockFactory) CreateDummyLock(key string) *Lock

func (*LockFactory) Get

func (f *LockFactory) Get(key string) *Lock

Jump to

Keyboard shortcuts

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