context

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APP_CONFIG_KEY  = "gooo:request:app_config"
	USER_CONFIG_KEY = "gooo:request:user_config"
)

Variables

This section is empty.

Functions

func AppConfig

func AppConfig(ctx context.Context) *config.App

func Get

func Get[T any](ctx context.Context, key string) T

func UserConfig

func UserConfig[T any](ctx context.Context) T

func With

func With[T any](ctx context.Context, key string, value T) context.Context

func WithAppConfig

func WithAppConfig(ctx context.Context, cfg *config.App) context.Context

func WithUserConfig

func WithUserConfig[T any](ctx context.Context, u T) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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