context_keys

package
v0.4.11 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UserIDKey    string = "userID"
	UserLevelKey string = "userLevel"
)

Variables

This section is empty.

Functions

func GetUserIdFromContext

func GetUserIdFromContext(ctx context.Context) uint

func GetUserIdFromContextOptional added in v0.4.3

func GetUserIdFromContextOptional(ctx context.Context) *uint

func GetUserLevelFromContext

func GetUserLevelFromContext(ctx context.Context) int

func GetUserLevelFromContextOptional added in v0.4.3

func GetUserLevelFromContextOptional(ctx context.Context) *int

Types

This section is empty.

Jump to

Keyboard shortcuts

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