queue

package
v0.0.0-...-2eef10d Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: Apache-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 Item

type Item interface {
}

type ItemQueue

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

Item the type of the queue

func (*ItemQueue) Dequeue

func (s *ItemQueue) Dequeue() Item

dequeue

func (*ItemQueue) Enqueue

func (s *ItemQueue) Enqueue(t Item)

Enqueue adds an Item to the end of the queue

func (*ItemQueue) IsEmpty

func (s *ItemQueue) IsEmpty() bool

func (*ItemQueue) New

func (s *ItemQueue) New() *ItemQueue

New creates a new ItemQueue

func (*ItemQueue) Size

func (s *ItemQueue) Size() int

Size returns the number of Items in the queue

type ItemQueuer

type ItemQueuer interface {
	New() ItemQueue
	Enqueue(t Item)
	Dequeue() *Item
	IsEmpty() bool
	Size() int
}

Jump to

Keyboard shortcuts

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