queue

package
v0.0.0-...-d032931 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2018 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrQueueCount = errors.New("queueCount can't be less than 1.")
	ErrNoData     = errors.New("no data")
)

Functions

This section is empty.

Types

type Queue

type Queue struct {
	QueueCount int
	Queues     map[int]*list.List
}

func InitQueue

func InitQueue(queueCount int) (Queue, error)

func (*Queue) Len

func (q *Queue) Len(queueNo int) (Count int)

func (*Queue) Lens

func (q *Queue) Lens() (Count int)

func (*Queue) Pop

func (q *Queue) Pop(queueNo int) (data *list.Element, err error)

func (*Queue) Push

func (q *Queue) Push(data interface{}, queueNo ...int) bool

Jump to

Keyboard shortcuts

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