grpcutil

package
v1.16.1-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2019 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MDCarrier

type MDCarrier metadata.MD

MDCarrier implements tracer.TextMapWriter and tracer.TextMapReader on top of gRPC's metadata, allowing it to be used as a span context carrier for distributed tracing.

func (MDCarrier) ForeachKey

func (mdc MDCarrier) ForeachKey(handler func(key, val string) error) error

ForeachKey will iterate over all key/value pairs in the metadata.

func (MDCarrier) Get

func (mdc MDCarrier) Get(key string) string

Get will return the first entry in the metadata at the given key.

func (MDCarrier) Set

func (mdc MDCarrier) Set(key, val string)

Set will add the given value to the values found at key. Key will be lowercased to match the metadata implementation.

Jump to

Keyboard shortcuts

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