contexthelper

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

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

Go to latest
Published: Dec 27, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLoggerInContext

func GetLoggerInContext(ctx context.Context) zerolog.Logger

func GetRequestIDInContext

func GetRequestIDInContext(ctx context.Context) string

func GetRequestPatternInContext

func GetRequestPatternInContext(ctx context.Context) string

func GetRequestedScopesInContext

func GetRequestedScopesInContext(ctx context.Context) (map[string]bool, bool)

func GetUsernameInContext

func GetUsernameInContext(ctx context.Context) (string, bool)

func SetLoggerInContext

func SetLoggerInContext(ctx context.Context, logger zerolog.Logger) context.Context

func SetRequestIDInContext

func SetRequestIDInContext(ctx context.Context, requestID string) context.Context

func SetRequestPatternInContext

func SetRequestPatternInContext(ctx context.Context, pattern string) context.Context

func SetRequestedScopesInContext

func SetRequestedScopesInContext(r *http.Request, scopes map[string]bool) *http.Request

func SetUsernameInContext

func SetUsernameInContext(r *http.Request, username string) *http.Request

Types

This section is empty.

Jump to

Keyboard shortcuts

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