iface

package
v1.10.21 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MPL-2.0 Imports: 0 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 interface {
	//Acquire the lock with retry
	//key: the name of the lock,
	//value: at the nanosecond timestamp that lock needs to be released automatically
	LockWithRetries(key string, value int64) error

	//Acquire the lock with once
	//key: the name of the lock,
	//value: at the nanosecond timestamp that lock needs to be released automatically
	Lock(key string, value int64) error
}

Jump to

Keyboard shortcuts

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