package
0.0.3
Repository: https://github.com/hujingwei/go-zero.git
Documentation: pkg.go.dev

# README

net/metadata

项目简介

用于储存各种元信息

# Functions

Bool get boolean from metadata in context use strconv.Parse.
FromContext returns the incoming metadata in ctx if it exists.
Int64 get int64 value from metadata in context.
IsIncomingKey represent this key should extract from rpc metadata.
IsOutgoingKey represent this key should propagate by rpc.
Join joins any number of mds into a single MD.
New creates an MD from a given key-value map.
NewContext creates a new context with md attached.
Pairs returns an MD formed by the mapping of key, value ..
Range range value from metadata in context filtered by filterFunc.
String get string value from metadata in context.
Value get value from metadata in context return nil if not found.
WithContext return no deadline context and retain metadata.

# Constants

metadata common key.
metadata common key.
Router.
metadata common key.
Dispatch.
Criticality 重要性.
Device 客户端信息.
metadata common key.
NOTE: !!!业务可重新修改key名!!!.
Mirror.
Network.
metadata common key.
metadata common key.
metadata common key.
Timeout.
Trace.

# Type aliases

MD is a mapping from metadata keys to values.