contexts

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRequestDepth

func GetRequestDepth(ctx context.Context) int

func GetRequestID

func GetRequestID(ctx context.Context) string

GetRequestID allows to access the TrackingID details from the context. (deprecated)

func GetRequestRoute

func GetRequestRoute(ctx context.Context) string

GetRequestRoute allows to access the RequestRoute details from the context.

func GetTrackingID added in v0.2.1

func GetTrackingID(ctx context.Context) string

GetTrackingID allows to access the TrackingID details from the context.

func GetTreePath

func GetTreePath(ctx context.Context) string

func WithRequestDepth

func WithRequestDepth(ctx context.Context, requestDepth int) context.Context

func WithRequestID

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

func WithRequestRoute

func WithRequestRoute(ctx context.Context, requestRoute string) context.Context

func WithTrackingID added in v0.2.1

func WithTrackingID(ctx context.Context, trackingID string) context.Context

func WithTreePath

func WithTreePath(ctx context.Context, treePath string) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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