memqueue

package
v0.0.0-...-17eb08c Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package memqueue provides an in-memory Queue implementation for testing.

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 an in-memory implementation of commandqueue.Queue.

func New

func New(bufferSize int) *Queue

New creates a new in-memory Queue with the given buffer size.

func (*Queue) Close

func (q *Queue) Close() error

func (*Queue) Dequeue

func (q *Queue) Dequeue(ctx context.Context) (*commandqueue.Claim, error)

func (*Queue) Enqueue

func (*Queue) EnqueueAndWait

func (q *Queue) EnqueueAndWait(ctx context.Context, cmd commandqueue.EnqueuedCommand, timeout time.Duration) (*commandqueue.Result, error)

Jump to

Keyboard shortcuts

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