queue

package
v1.2.40 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: AGPL-3.0 Imports: 1 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 {
	// contains filtered or unexported fields
}

Queue is a simple in-memory queue implementation. It uses a map to store multiple byte slices under a single key. All operations are safe for concurrent use.

func NewQueue

func NewQueue() *Queue

func (*Queue) Delete

func (q *Queue) Delete(key string) error

func (*Queue) Drain

func (q *Queue) Drain(key string) [][]byte

func (*Queue) Push

func (q *Queue) Push(key string, value []byte) (int, error)

Jump to

Keyboard shortcuts

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