correlationjsonrpc

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package correlationjsonrpc is the target-oriented path for JSON-RPC correlation. New supplies Send/Receive over duplicate-preserving Metadata, not envelopes or protocol request IDs. Factory and maps remain caller-owned; no transport or background lifecycle is introduced. Aliases intentionally preserve type and sentinel identity, including reflection's original package path. Its public types and behavior retain the released jsonrpc package identities.

Index

Constants

View Source
const (
	// CorrelationField carries the logical workflow identifier.
	CorrelationField = legacy.CorrelationField
	// RequestField carries the current JSON-RPC hop identifier.
	RequestField = legacy.RequestField
	// CausationField carries the immediate parent identifier.
	CausationField = legacy.CausationField
)

Variables

View Source
var (
	// ErrInvalidOptions reports incomplete adapter configuration.
	ErrInvalidOptions = legacy.ErrInvalidOptions
	// ErrMalformedMetadata reports non-string or oversized JSON metadata.
	ErrMalformedMetadata = legacy.ErrMalformedMetadata
)

Functions

This section is empty.

Types

type Adapter

type Adapter = legacy.Adapter

Adapter explicitly sends and receives JSON-RPC metadata.

func New

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

New constructs a JSON-RPC metadata adapter.

type Metadata

type Metadata = legacy.Metadata

Metadata preserves repeated JSON members supplied by a strict envelope decoder so conflicting duplicates cannot be silently collapsed.

type Options

type Options = legacy.Options

Options configure JSON-RPC metadata validation and names.

Jump to

Keyboard shortcuts

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