package
0.0.0-20190422025920-beccf3fe4313
Repository: https://github.com/changwh/go-common.git
Documentation: pkg.go.dev

# README

net/metadata

项目简介

用于储存各种元信息

编译环境
  • 请只用 Golang v1.8.x 以上版本编译执行
依赖包
  • No other dependency

# 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.
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 ..
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.
Cluster cluster info key.
metadata common key.
metadata common key.
Device.
metadata common key.
metadata common key.
metadata common key.
metadata common key.
metadata common key.
metadata common key.
metadata common key.
metadata common key.
metadata common key.
metadata common key.
metadata common key.

# Type aliases

MD is a mapping from metadata keys to values.