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.
Click to show internal directories.
Click to hide internal directories.