Documentation ¶
Index ¶
Constants ¶
View Source
const ( ContextKeyTraceID = "traceID" ContextKeyControl = "Control" ContextKeyHead = "Head" ContextKeyHeadUid = "uid" ContextKeyHeadSource = "source" ContextKeyHeadIp = "ip" ContextKeyHeadRegion = "region" ContextKeyHeadDt = "dt" ContextKeyHeadUnionId = "unionid" )
由于请求的上下文信息的 thrift 定义在 util 项目中,本模块主要为了避免循环依赖
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ContextController ¶ added in v1.2.0
type ContextController interface {
GetGroup() string
}
type ContextHeader ¶
type ContextHeader interface {
ToKV() map[string]interface{}
}
Click to show internal directories.
Click to hide internal directories.