sdk

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultHeaderKey = "x-diverge-env"

DefaultHeaderKey is used to extract the preview environment name from the X-Diverge-Env HTTP header.

Variables

This section is empty.

Functions

func EnvironmentFromContext

func EnvironmentFromContext(ctx context.Context) string

EnvironmentFromContext extracts the environment name from the context.

func WithEnvironment

func WithEnvironment(ctx context.Context, envName string) context.Context

WithEnvironment returns a context with the environment name set.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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