mcontext

package
v0.0.49 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: Apache-2.0 Imports: 3 Imported by: 9 modules, 19 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConnID

func GetConnID(ctx context.Context) string

func GetCtxInfos

func GetCtxInfos(ctx context.Context) (operationID, opUserID, platform, connID string, err error)

func GetMustCtxInfo

func GetMustCtxInfo(ctx context.Context) (operationID, opUserID, platform, connID string, err error)

func GetOpUserID

func GetOpUserID(ctx context.Context) string

func GetOpUserPlatform

func GetOpUserPlatform(ctx context.Context) string

func GetOperationID

func GetOperationID(ctx context.Context) string

func GetRemoteAddr

func GetRemoteAddr(ctx context.Context) string

func GetTriggerID

func GetTriggerID(ctx context.Context) string

func NewCtx

func NewCtx(operationID string) context.Context

func SetConnID

func SetConnID(ctx context.Context, connID string) context.Context

func SetOpUserID

func SetOpUserID(ctx context.Context, opUserID string) context.Context

func SetOperationID

func SetOperationID(ctx context.Context, operationID string) context.Context

func WithMustInfoCtx

func WithMustInfoCtx(values []string) context.Context

func WithOpUserIDContext

func WithOpUserIDContext(ctx context.Context, opUserID string) context.Context

func WithOpUserPlatformContext

func WithOpUserPlatformContext(ctx context.Context, platform string) context.Context

func WithTriggerIDContext

func WithTriggerIDContext(ctx context.Context, triggerID 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