requestid

package
v0.0.0-...-e707d1a Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package requestid provides functions to support embedded and retrieving a request id from a go context tree

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Context

func Context(ctx context.Context, reqid string) context.Context

Context create a context from the provided parent and the provided request id string.

func ContextFromChi

func ContextFromChi(ctx context.Context) context.Context

ContextFromChi returns a new context bound with the value of the request id.

func FromContext

func FromContext(ctx context.Context) string

FromContext returns the set request id, if one has been set, from the provided context returns "" if no requestid has been set

Types

This section is empty.

Jump to

Keyboard shortcuts

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