reqctx

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithRequestCtx

func WithRequestCtx() gorillamux.MiddlewareFunc

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