2025-11-14 16:34:34 +08:00
|
|
|
// Package constants define constant variable
|
|
|
|
|
package constants
|
|
|
|
|
|
2026-07-21 16:13:23 +08:00
|
|
|
// ClientTokenContextName is the Gin key used for the configured client token.
|
|
|
|
|
const ClientTokenContextName = "client_token"
|
|
|
|
|
|
2025-11-14 16:34:34 +08:00
|
|
|
type contextKey string
|
|
|
|
|
|
|
|
|
|
// MeasurementUUIDKey define measurement uuid key into context
|
|
|
|
|
const MeasurementUUIDKey contextKey = "measurement_uuid"
|
2026-07-21 16:13:23 +08:00
|
|
|
|
|
|
|
|
// CtxKeyClientToken is the typed standard-library context key for client token propagation.
|
|
|
|
|
const CtxKeyClientToken contextKey = ClientTokenContextName
|