go-micro: github.com/divisionone/go-micro/metadata Index | Files

package metadata

import "github.com/divisionone/go-micro/metadata"

Package metadata is a way of defining message headers


Package Files


func NewContext Uses

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

type Metadata Uses

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 FromContext Uses

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

Package metadata imports 1 packages (graph) and is imported by 7 packages. Updated 2018-05-26. Refresh now. Tools for package owners.