context

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValueLogContainer

func ValueLogContainer(ctx context.Context) any

ValueLogContainer extract log container from context

func ValueLogID

func ValueLogID(ctx context.Context) string

ValueLogID extract log id from context

func ValueResponseWriter

func ValueResponseWriter(ctx context.Context) interface{}

ValueResponseWriter extract response write from context

func ValueTraceID

func ValueTraceID(ctx context.Context) string

ValueTraceID extract trace id from context

func WithLogContainer

func WithLogContainer(ctx context.Context, val interface{}) context.Context

WithLogContainer inject log container to context

func WithLogID

func WithLogID(ctx context.Context, val interface{}) context.Context

WithLogID inject log id to context

func WithResponseWriter

func WithResponseWriter(ctx context.Context, val interface{}) context.Context

WithResponseWriter inject response write to context

func WithTraceID

func WithTraceID(ctx context.Context, val interface{}) context.Context

WithTraceID inject trace_id id to context

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL