reqctx

package
v0.7.21 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithRequestCtx

func WithRequestCtx() func(next http.Handler) http.Handler

Types

type ReqCtx

type ReqCtx struct {
	UserID    string
	UserEmail string
	RequestID string
}

func From

func From(ctx context.Context) ReqCtx

From returns the ReqCtx from the given go context. Returns zero-value if not available.

Jump to

Keyboard shortcuts

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