hchi

package
v0.0.0-...-d683214 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package hchi 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 RequestID

func RequestID(ctx context.Context) string

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

func WithChiRequestID

func WithChiRequestID(ctx context.Context) context.Context

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

func WithRequestID

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

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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