Versions in this module Expand all Collapse all v1 v1.0.1 May 30, 2022 v1.0.0 May 31, 2022 Changes in this version + const BIZ_TRACE_KEY + const LANG_KEY + const MESH_CONFIG_KEY + const RASSE_PREFIX + const RASSE_TRACE_KEY + const USERID_KEY + const USERNAME_KEY + const USER_KEY + var DEFAULT_LANG = "zh-CN" + var DEFAULT_MESH_TRACE_KEYS = []string + func GetMeshKeys() []string + func ToMap(ctx XContext) map[string]string + type BizTrace string + type EmptyContext struct + Biz BizTrace + Lang LangInfo + Mesh MeshTrace + Protocol ProtocolType + RawContext context.Context + Trace RasseTrace + User UserInfo + func NewEmptyContext() *EmptyContext + func (ctx *EmptyContext) Deadline() (deadline time.Time, ok bool) + func (ctx *EmptyContext) Done() <-chan struct{} + func (ctx *EmptyContext) Err() error + func (ctx *EmptyContext) Get(key string) (value interface{}, exist bool) + func (ctx *EmptyContext) GetBizTrace() BizTrace + func (ctx *EmptyContext) GetLang() LangInfo + func (ctx *EmptyContext) GetMeshTrace() MeshTrace + func (ctx *EmptyContext) GetProtocol() ProtocolType + func (ctx *EmptyContext) GetRasseTrace() RasseTrace + func (ctx *EmptyContext) GetRawContext() interface{} + func (ctx *EmptyContext) GetUserInfo() UserInfo + func (ctx *EmptyContext) Set(key string, value interface{}) + func (ctx *EmptyContext) Value(key interface{}) interface{} + type LangInfo struct + Code string + type MeshTrace map[string]string + type ProtocolType int32 + const Gin + const TDMQ + const Test + const Trpc + func (p ProtocolType) String() string + type RasseTrace string + type UserInfo struct + UserId string + UserName string + type XContext interface + Get func(key string) (value interface{}, exist bool) + GetBizTrace func() BizTrace + GetLang func() LangInfo + GetMeshTrace func() MeshTrace + GetProtocol func() ProtocolType + GetRasseTrace func() RasseTrace + GetRawContext func() interface{} + GetUserInfo func() UserInfo + Set func(key string, value interface{}) + func NewTestContext() XContext