queue

package
v0.0.0-...-4351fdd Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: MIT Imports: 3 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 struct {
	*equeue.Queue
}

Queue is a fast, ring-buffered queue

func New

func New() *Queue

New creates Queue

func (*Queue) Get

func (q *Queue) Get(i int) (res interface{}, err error)

Get queue element by index

func (*Queue) Peek

func (q *Queue) Peek() (res interface{}, err error)

Peek into queue top

func (*Queue) Remove

func (q *Queue) Remove() (res interface{}, err error)

Remove top element from queue

func (*Queue) String

func (q *Queue) String() string

String representation of queue

Jump to

Keyboard shortcuts

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