requestid

package
v0.0.0-...-1aed462 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2019 License: Apache-2.0 Imports: 3 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 ContextFromC

func ContextFromC(ctx context.Context, c *web.C) context.Context

ContextFromC returns a new context bound with the value of the request id in the provide goji context

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