queue

package
v0.0.0-...-ff18d00 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: MPL-2.0 Imports: 6 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 struct {
	Value []byte
	// contains filtered or unexported fields
}

func (Item) Key

func (i Item) Key() []byte

type Queue

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

func New

func New(name string) (*Queue, error)

func (*Queue) Close

func (q *Queue) Close() error

func (*Queue) Next

func (q *Queue) Next(prev []byte) (Item, error)

func (*Queue) Peek

func (q *Queue) Peek() (Item, error)

func (*Queue) Pop

func (q *Queue) Pop(key []byte) error

func (*Queue) Push

func (q *Queue) Push(value []byte) error

Jump to

Keyboard shortcuts

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