metadata

package
Version: v0.0.0-...-5dc8409 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package metadata is a way of defining message headers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContext

func NewContext(ctx context.Context, md Metadata) context.Context

NewContext returns the context object

func NewContext17

func NewContext17(ctx context17.Context, md Metadata) context.Context

NewContext17 returns the context object

Types

type Metadata

type Metadata map[string]string

Metadata is used to represent request headers internally. It is used at the RPC level and translate back and forth from request headers.

func FromContext

func FromContext(ctx context.Context) (Metadata, bool)

FromContext get the context contents and returns meta data

func FromContext17

func FromContext17(ctx context17.Context) (Metadata, bool)

FromContext17 get the context contents and returns meta data

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL