metadata

package
v0.0.0-...-625ea8d Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package metadata is a way of defining message headers

Index

Constants

View Source
const CONTENTTYPE = "_2"

CONTENTTYPE Content-Type

View Source
const METHOD = "_1"

METHOD Micro-Method

View Source
const MSGID = "_0"

MSGID msg id

Variables

This section is empty.

Functions

func NewContext

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

NewContext new

Types

type Metadata

type Metadata map[string]string

Metadata is our way of representing request headers internally. They're used at the RPC level and translate back and forth from Transport headers.

func Copy

func Copy(md Metadata) Metadata

Copy copy metadata

func FromContext

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

FromContext from context

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL