constants

package
v0.2.39 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package constants defines symbolic names for shared literal values and log field identifiers used throughout the proxy.

Index

Constants

View Source
const (
	// LogFieldError identifies the structured log field name for an error.
	LogFieldError = "error"

	// LogFieldLatencyMilliseconds identifies the structured log field name for latency in milliseconds.
	LogFieldLatencyMilliseconds = "latency_ms"
	// LogFieldPath identifies the query-free request path recorded in structured logs.
	LogFieldPath = "path"

	// LogEventReadResponseBodyFailed identifies failures while reading an HTTP response body.
	LogEventReadResponseBodyFailed = "read response body failed"
	// LogEventUpstreamRateLimitDelayed identifies an upstream call delayed by the shared rate limiter.
	LogEventUpstreamRateLimitDelayed = "upstream HTTP call delayed by rate limit"
	// LogEventUpstreamRateLimitCanceled identifies an upstream call canceled while waiting for the shared rate limiter.
	LogEventUpstreamRateLimitCanceled = "upstream HTTP call canceled during rate limit wait"
	// LogFieldUpstreamOrigin identifies the normalized upstream origin affected by rate limiting.
	LogFieldUpstreamOrigin = "upstream_origin"
	// LogFieldRateLimitMaxRequests identifies the configured request ceiling for one interval.
	LogFieldRateLimitMaxRequests = "rate_limit_max_requests"
	// LogFieldRateLimitInterval identifies the configured rolling-window interval.
	LogFieldRateLimitInterval = "rate_limit_interval"
	// LogFieldRateLimitInitialWaitMilliseconds identifies the first wait imposed on a call.
	LogFieldRateLimitInitialWaitMilliseconds = "rate_limit_initial_wait_ms"
	// LogFieldRateLimitTotalWaitMilliseconds identifies the total wait imposed on a call.
	LogFieldRateLimitTotalWaitMilliseconds = "rate_limit_total_wait_ms"

	EmptyString = ""
	LineBreak   = "\n"
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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