meta

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package meta defines the internal gRPC metadata contract carried between the router and the per-upstream proxy: the router stamps the request namespace it already extracted so the proxy can resolve a templated upstream address without parsing the payload again. It depends on no other internal packages.

Index

Constants

View Source
const NamespaceHeader = "x-temporal-proxy-namespace"

NamespaceHeader is the outgoing metadata key that carries the local (pre- translation) namespace from the router to the upstream proxy.

Variables

This section is empty.

Functions

func NamespaceFrom

func NamespaceFrom(ctx context.Context) string

NamespaceFrom returns the namespace carried on ctx's outgoing metadata, or "" when absent. When multiple values are present the last (most recently added) wins.

func WithNamespace

func WithNamespace(ctx context.Context, namespace string) context.Context

WithNamespace returns ctx with namespace set on its outgoing gRPC metadata, replacing any value already present for NamespaceHeader (so a client cannot influence routing by sending the header itself).

Types

This section is empty.

Jump to

Keyboard shortcuts

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