api

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 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 Locker

type Locker interface {
	// Lock / - захватывает имя и владеет им до завершения контекста
	Lock(ctx context.Context, name string) error
	// TryLock / - пробует захватить имя и в случае успеха владеет им до завершения контекста
	TryLock(ctx context.Context, name string) (bool, error)
}

func NewLocker

func NewLocker() Locker

Jump to

Keyboard shortcuts

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