context

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildDistributionContext

func BuildDistributionContext() context.Context

BuildDistributionContext create a background context with logger for distribution and returns it.

func BuildRequestContext

func BuildRequestContext(ctx context.Context) context.Context

BuildRequestContext create a new context with logger by given context.

func WithDistribution

func WithDistribution(handler http.Handler) http.Handler

WithDistribution adds the distribution context value to the context of the http access chain.

Types

This section is empty.

Jump to

Keyboard shortcuts

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