dummyqueue

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2019 License: Apache-2.0 Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DummyQueue

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

DummyQueue is a basic in-memory queue.

func New

func New() *DummyQueue

New creates a new dummy queue.

func (*DummyQueue) Fossils

func (q *DummyQueue) Fossils() []*fossilizer.Fossil

Fossils returns all the fossils in the queue for testing purposes.

func (*DummyQueue) Pop

func (q *DummyQueue) Pop(_ context.Context, count int) ([]*fossilizer.Fossil, error)

Pop fossils from the queue.

func (*DummyQueue) PopCount

func (q *DummyQueue) PopCount() int

PopCount returns the number of fossils popped.

func (*DummyQueue) Push

Push a fossil to the queue.

func (*DummyQueue) PushCount

func (q *DummyQueue) PushCount() int

PushCount returns the number of fossils pushed.

Jump to

Keyboard shortcuts

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