contextpropagation

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package contextpropagation shares private preparation markers between physical queues and the workflow bus.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Prepared

type Prepared struct{ Propagator }

Prepared delegates injection after the physical worker has already restored the receiving context.

func (Prepared) Extract

func (Prepared) Extract(ctx context.Context, _ map[string]string) context.Context

Extract preserves decorators' derived contexts instead of replacing them with the transported parent again.

type Propagator

type Propagator interface {
	// Inject snapshots selected correlation fields for the next delivery.
	Inject(context.Context) map[string]string
	// Extract restores selected correlation onto the receiver's lifetime.
	Extract(context.Context, map[string]string) context.Context
}

Propagator describes the transport-neutral contract without coupling this internal package to either caller.

Jump to

Keyboard shortcuts

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