mrctx

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CorrelationId

func CorrelationId(ctx context.Context) string

func EnumList

func EnumList(ctx context.Context, ctxKey any) []string

func GenCorrelationId

func GenCorrelationId() string

func Int64

func Int64(ctx context.Context, ctxKey any) int64

func Int64List

func Int64List(ctx context.Context, ctxKey any) []int64

func Locale

func Locale(ctx context.Context) *mrlang.Locale

func Logger

func Logger(ctx context.Context) mrcore.Logger

func Platform

func Platform(ctx context.Context) string

func UserIp

func UserIp(ctx context.Context) net.IP

func WithCorrelationId

func WithCorrelationId(ctx context.Context, value string) context.Context

func WithEnumList

func WithEnumList(ctx context.Context, ctxKey any, items []string) context.Context

func WithInt64

func WithInt64(ctx context.Context, ctxKey any, value int64) context.Context

func WithInt64List

func WithInt64List(ctx context.Context, ctxKey any, items []int64) context.Context

func WithLocale

func WithLocale(ctx context.Context, value *mrlang.Locale) context.Context

func WithLogger

func WithLogger(ctx context.Context, value mrcore.Logger) context.Context

func WithPlatform

func WithPlatform(ctx context.Context, value string) context.Context

func WithUserIp

func WithUserIp(ctx context.Context, value net.IP) 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