mcontext

package
v2.4.4 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 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 GetOpAction added in v2.4.0

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

func GetOpDeviceID

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

func GetOpUserID

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

func GetOpUserRole added in v2.4.0

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

func GetOperationID

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

func GetOperationID2 added in v2.4.0

func GetOperationID2(ctx context.Context) string

func WithOpActionContext added in v2.4.0

func WithOpActionContext(ctx context.Context, opAction string) 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 WithOpUserRoleContext added in v2.4.0

func WithOpUserRoleContext(ctx context.Context, opUserRole string) 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