context

package
v1.38.1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UserNameKey string = "username"
)

Variables

This section is empty.

Functions

func IsAuthenticationRequired added in v1.26.0

func IsAuthenticationRequired(ctx context.Context) bool

func SetAuthenticationRequired added in v1.26.0

func SetAuthenticationRequired(c *gin.Context)

func UserNameFromContext

func UserNameFromContext(ctx context.Context) (string, error)

func UserNameToContext

func UserNameToContext(c *gin.Context, username string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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