metadata - ActiveState ActiveGo 1.8
...

Package metadata

import "github.com/micro/go-micro/metadata"
Overview
Index

Overview ▾

Package metadata is a way of defining message headers

func NewContext

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

type Metadata

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

type Metadata map[string]string

func FromContext

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