auth

package
v0.0.0-...-fde1fe5 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UsernameHeader     = "X-User-Name"
	UsernameCtxKey     = "username"
	EmptyUsernameValue = ""
)

Variables

This section is empty.

Functions

func GetUsername

func GetUsername(c *gin.Context) string

func HasUsername

func HasUsername(c *gin.Context) bool

func UsernameContext

func UsernameContext() gin.HandlerFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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