lock

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: Apache-2.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 Locker

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

func NewLocker

func NewLocker(cli *api.Client) *Locker

func (*Locker) Acquire

func (l *Locker) Acquire(ctx context.Context, key, sessionID string) (bool, error)

func (*Locker) KeyOwner

func (l *Locker) KeyOwner(ctx context.Context, key string) (string, error)

func (*Locker) Release

func (l *Locker) Release(ctx context.Context, key, sessionID string) (bool, error)

Jump to

Keyboard shortcuts

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