Documentation ¶
Index ¶
Constants ¶
View Source
const ( // HeaderAuthTokenKey 授权token的key HeaderAuthTokenKey = "soc-auth-token" // HeaderPlatform 平台 HeaderPlatform = "soc-platform" // HeaderAppCodeKey 用于http header HeaderAppCodeKey = "soc-app" // HeaderPartnerCodeKey 合作方id的http header HeaderPartnerCodeKey = "soc-partner-code" // HeaderChannel 渠道 HeaderChannel = "soc-channel" HeaderClientVersion = "soc-client-version" // HeaderTraceIdKey 用于http header HeaderTraceIdKey = "soc-trace-id" // HeaderSignKey 请求签名 http header HeaderSignKey = "soc-sign" // HeaderTimestampKey 请求时间戳 http header HeaderTimestampKey = "soc-timestamp" // HeaderSignPolicyKey 请求签名策略 http header HeaderSignPolicyKey = "soc-sign-policy" // HeaderDeviceIdKey 请求设备id http header HeaderDeviceIdKey = "soc-device-id" // HeaderLangKey 请求语言 http header HeaderLangKey = "soc-lang" )
相关HTTP头
View Source
const ( // SignPolicySha256 签名策略 sha256 SignPolicySha256 = "sha256" // SignPolicyMd5 签名策略 md5 SignPolicyMd5 = "md5" )
View Source
const ( // LangZhCn LangZhChs 中文简体 中间件会统一转为 LangZhCn LangZhCn string = "zh-CN" LangZhChs string = "zh-CHS" // LangZhTw LangZhHk LangZhMo LangZhCht 中文繁体 中间件会统一转为 LangZhTw LangZhTw string = "zh-TW" LangZhHk string = "zh-HK" LangZhMo string = "zh-MO" LangZhCht string = "zh-CHT" // LangEn 英文 LangEn string = "en" // LangEnUs 英文美国 LangEnUs string = "en-US" // LangEnGb 英文英国 LangEnGb string = "en-GB" )
View Source
const (
// ContextHttpContextKey httpContext的ContextKey
ContextHttpContextKey = "soc_http_context"
)
Trace相关Context的key
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.