Documentation
¶
Index ¶
- Constants
- Variables
- func Add(ctx context.Context, key string, val interface{}) context.Context
- func Decode(m []byte) context.Context
- func Encode(ctx context.Context) []byte
- func FromMap(val map[string]interface{}) context.Context
- func Get(ctx context.Context, key string) interface{}
- func GetBuildPacketTime(ctx context.Context) int64
- func GetInHandlerTime(ctx context.Context) int64
- func GetInt64(ctx context.Context, key string) int64
- func GetMessageId(ctx context.Context) uint
- func New() context.Context
- func ToMap(ctx context.Context) map[string]interface{}
Constants ¶
View Source
const ( MessageIdKey = "message_id" // (客户端)消息id BuildPacketTimeKey = "build_packet_time" // 创建数据包时间 InHandlerTimeKey = "in_handler_time" // 进入handler时间 )
Variables ¶
View Source
var PropagateCtxKey = propagateKey{}
PropagateCtxKey is the context key where the content that will be propagated through rpc calls is set
Functions ¶
func GetBuildPacketTime ¶ added in v1.2.10
func GetInHandlerTime ¶ added in v1.2.10
func GetMessageId ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.