contexts

package
v0.0.0-...-2e53e79 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogger

func GetLogger(ctx context.Context) *zap.Logger

func GetTraceID

func GetTraceID(ctx context.Context) string

func SetLoggerEcho

func SetLoggerEcho(ctx echo.Context, logger *zap.Logger)

func SetTraceIDEcho

func SetTraceIDEcho(ctx echo.Context, traceID string)

func SetValuesEcho

func SetValuesEcho(ctx echo.Context, logger *zap.Logger, traceID string)

func WithCommandValues

func WithCommandValues(parent context.Context, name string, logger *zap.Logger, traceID string) context.Context

func WithLogger

func WithLogger(parent context.Context, logger *zap.Logger) context.Context

func WithTraceID

func WithTraceID(parent context.Context, id string) context.Context

func WithValues

func WithValues(parent context.Context, logger *zap.Logger, traceID 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