mcontext

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

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