appcontext

package
v0.0.0-...-9c194b7 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ctx

func Ctx() context.Context

func Logger

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

Logger returns a zap logger with as much context as possible

func NewCtx

func NewCtx() context.Context

func WithPkgName

func WithPkgName(ctx context.Context, pkgName string) context.Context

WithPkg returns a context with pkg name

func WithRqId

func WithRqId(ctx context.Context, requestId string) context.Context

WithRqId returns a context which knows its request ID

func WithSessionId

func WithSessionId(ctx context.Context, sessionId string) context.Context

WithSessionId returns a context which knows its session ID

Types

This section is empty.

Jump to

Keyboard shortcuts

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