lock

package
v4.16.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Queue

type Queue interface {
	// Remove removes element with provided ID (if exists) and returns that elements
	Remove(id string) []pq.Item
	// Insert adds an item to the queue
	Insert(item pq.Item)
	// ExtractMin returns the item with the highest priority (less value is the highest priority)
	ExtractMin() pq.Item
	// Len returns the number of items in the queue
	Len() uint64
}

Queue represents Lock plugin queue with it's elements types inside

Jump to

Keyboard shortcuts

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