requestid

package
v0.0.42 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2021 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendToOutgoingContext added in v0.0.2

func AppendToOutgoingContext(ctx context.Context) context.Context

AppendToOutgoingContext returns a context with the request-id added to the gRPC metadata.

func FromContext

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

FromContext returns a request ID from gRPC metadata if available in ctx.

func NewMetadata

func NewMetadata(id string) metadata.MD

NewMetadata constructs gRPC metadata with the request ID set.

Types

This section is empty.

Jump to

Keyboard shortcuts

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