context

package
v0.0.0-...-c1abbfc Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2018 License: LGPL-2.1 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReqID

func ReqID(ctx context.Context) uuid.UUID

ReqID returns request ID stored in the context provided.

func ReqLogger

func ReqLogger(ctx context.Context) log.FieldLogger

ReqLogger returns logger stored in the context provided.

func WithReqID

func WithReqID(ctx context.Context, reqid uuid.UUID) context.Context

WithReqID returns a new context with provided request id set as a value in the context.

func WithReqLogger

func WithReqLogger(ctx context.Context, logger log.FieldLogger) context.Context

WithReqLogger returns a new context with provided logger set as a value in the context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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