constant

package
v4.29.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContentType         = "Content-Type"
	Referer             = "Referer"
	UserAgent           = "User-Agent"
	GameClientVersion   = "Game-Client-Version"
	AccelByteSDKVersion = "AccelByte-SDK-Version"
	AccelByteOSSVersion = "AccelByte-OSS-Version"
	FlightID            = "x-flight-id"
	SessionID           = "X-Ab-SessionID"
	// TraceIDHeader is the response header, set by log.AccessLog, that carries the request's OpenTelemetry trace
	// ID, the same value as the access log's trace_id, so that a caller can quote it to find the request's logs and
	// trace. It is response-only: a request's own X-Trace-Id is ignored, and a caller continues a trace with the
	// W3C traceparent header instead.
	TraceIDHeader = "X-Trace-Id"
)

HTTP header names.

View Source
const (
	PermissionRead   = "READ"
	PermissionCreate = "CREATE"
	PermissionUpdate = "UPDATE"
	PermissionDelete = "DELETE"
)

Permission actions.

View Source
const (
	// DefaultRealmLive is the default for REALM_LIVE: the comma-separated realm names that
	// count as production, where detailed insufficient-permission errors are turned off.
	DefaultRealmLive = "prod,live,demo,trial"
)

Environment variable defaults.

View Source
const (
	// TraceID is the name of the log field that holds a request's OpenTelemetry trace ID.
	TraceID = "trace_id"
)

Log field names.

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