prque

package
v2.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 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 Item

type Item interface {
	Time() time.Time
}

type PriorityQueue

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

func New

func New() *PriorityQueue

func (*PriorityQueue) Len

func (q *PriorityQueue) Len() int

func (*PriorityQueue) Oldest

func (q *PriorityQueue) Oldest() time.Time

func (*PriorityQueue) Pop

func (q *PriorityQueue) Pop() Item

func (*PriorityQueue) Push

func (q *PriorityQueue) Push(item Item)

Jump to

Keyboard shortcuts

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