mcontext

package
v2.3.222 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2025 License: MIT Imports: 2 Imported by: ? modules, 0 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 GetOpDeviceID

func GetOpDeviceID(ctx context.Context) (int, bool)

func GetOpUserID

func GetOpUserID(ctx context.Context) (int, bool)

func GetOpUserLogin added in v2.3.222

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

func GetOperationID

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

func SetOpDeviceID

func SetOpDeviceID(ctx context.Context, opDeviceID int) context.Context

func SetOpUserID

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

func SetOpUserLogin added in v2.3.222

func SetOpUserLogin(ctx context.Context, opUserLogin int) context.Context

func SetOperationID

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

func WithOpDeviceIDContext

func WithOpDeviceIDContext(ctx context.Context, device int) context.Context

func WithOpUserIDContext

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

func WithOpUserLoginContext added in v2.3.222

func WithOpUserLoginContext(ctx context.Context, opUserLogin int) context.Context

func WithOperationIDContext

func WithOperationIDContext(ctx context.Context, operationID 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