queue

package
v0.0.0-...-cda2eac Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: GPL-3.0 Imports: 2 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 {
	// Push a data into queue
	Push(v interface{})
	// PushMany many data into queue
	PushMany(vs ...interface{})
	// Pop first data
	Pop() (interface{}, bool)
	// PopMany pop many of data
	PopMany(count int64) ([]interface{}, bool)
	// PopAll pop all data
	PopAll() ([]interface{}, bool)
	// Front peek first data
	Front() (interface{}, bool)
	// End peek end data
	End() (interface{}, bool)
	// Length get length of queue
	Length() int64
	// IsEmpty judge queue's lenght if 0
	IsEmpty() bool
}

Queue functions for manager datas in queue

func New

func New() Queue

New get queue functions manager

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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