modelRT/constants/context.go

14 lines
489 B
Go
Raw Normal View History

2025-11-14 16:34:34 +08:00
// Package constants define constant variable
package constants
// 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"
// CtxKeyClientToken is the typed standard-library context key for client token propagation.
const CtxKeyClientToken contextKey = ClientTokenContextName