package constant type CtxKey string const ( CtxKeyUser CtxKey = "user" CtxKeySessionID CtxKey = "sessionId" CtxKeyRequestHost CtxKey = "requestHost" CtxKeyPlatform CtxKey = "platform" CtxKeyPayment CtxKey = "payment" CtxLoginType CtxKey = "loginType" LoginType CtxKey = "loginType" CtxKeyIdentifier CtxKey = "identifier" CtxKeyDeviceID CtxKey = "deviceId" CtxKeyIncludeExpired CtxKey = "includeExpired" CtxKeyAPIVersionUseLatest CtxKey = "apiVersionUseLatest" CtxKeyAPIHeaderRaw CtxKey = "apiHeaderRaw" CtxKeyHasAppId CtxKey = "hasAppId" // CtxKeyIP / CtxKeyUserAgent are populated by AdminMetaMiddleware for // audit-writing logic (admin_action_log.ip / user_agent). Both keys use // the typed CtxKey so ctx.Value lookups collide-safely with any bare-string // writers a future middleware might accidentally introduce. CtxKeyIP CtxKey = "ip" CtxKeyUserAgent CtxKey = "user_agent" )