queue

package
v0.0.0-...-e8da5e4 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2026 License: MIT Imports: 2 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package queue propagates correlation metadata through backend-neutral queue metadata maps. Each Receive call creates a distinct delivery-attempt ID.

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidOptions = errors.New("queue correlation: invalid options")

ErrInvalidOptions reports invalid queue propagation configuration.

Functions

This section is empty.

Types

type Adapter

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

Adapter explicitly sends and receives queue metadata.

func New

func New(factory *correlation.Factory, options Options) (*Adapter, error)

New constructs a queue adapter.

func (*Adapter) Receive

func (adapter *Adapter) Receive(metadata map[string]string, trusted bool) (correlation.Values, error)

Receive creates a fresh delivery-attempt ID. trusted must be explicitly true only after the queue backend's metadata boundary has been authenticated.

func (*Adapter) Send

func (adapter *Adapter) Send(metadata map[string]string, parent correlation.Values) (correlation.Values, error)

Send creates a message hop and injects it into an application-owned map.

type Options

type Options struct {
	Codec correlation.CodecOptions
}

Options configure queue metadata validation and field names.

Jump to

Keyboard shortcuts

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