context

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const ContextKeyReferer contextKey = "referer"
View Source
const ContextKeyRequestID contextKey = "requestId"
View Source
const ContextKeySessionID contextKey = "sessionId"
View Source
const ContextKeyTrackingID contextKey = "trackingId"

Variables

This section is empty.

Functions

func GetReferer added in v0.14.3

func GetReferer(ctx context.Context) (string, bool)

func GetRequestID

func GetRequestID(ctx context.Context) (string, bool)

func GetSessionID

func GetSessionID(ctx context.Context) (string, bool)

func GetTrackingID

func GetTrackingID(ctx context.Context) (string, bool)

func SetReferer added in v0.14.3

func SetReferer(ctx context.Context, referer string) context.Context

func SetRequestID

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

func SetSessionID

func SetSessionID(ctx context.Context, sessionID string) context.Context

func SetTrackingID

func SetTrackingID(ctx context.Context, trackingID 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