Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CustomContextKeysLength ¶ added in v0.6.4
func CustomContextKeysLength() int
CustomContextKeysLength 自定义context keys长度
Types ¶
type GrpcHeaderCarrier ¶ added in v0.8.0
GrpcHeaderCarrier ...
func (GrpcHeaderCarrier) Get ¶ added in v0.8.0
func (mc GrpcHeaderCarrier) Get(key string) string
Get returns the value associated with the passed key.
func (GrpcHeaderCarrier) Keys ¶ added in v0.8.0
func (mc GrpcHeaderCarrier) Keys() []string
Keys lists the keys stored in this carrier.
func (GrpcHeaderCarrier) Set ¶ added in v0.8.0
func (mc GrpcHeaderCarrier) Set(key string, value string)
Set stores the key-value pair.
Click to show internal directories.
Click to hide internal directories.