middleware

package
v0.0.0-...-ca72cd2 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const BasicAuthUserKey = "bu"
View Source
const LoggerKey = "l"

Variables

This section is empty.

Functions

func BasicAuthMiddleware

func BasicAuthMiddleware(htpasswdPath, realm string) gin.HandlerFunc

func GetBasicAuthUserFromCtx

func GetBasicAuthUserFromCtx(ctx *gin.Context) (string, bool)

func GetLoggerFromCtx

func GetLoggerFromCtx(ctx *gin.Context) *zap.Logger

func GoodLoggerMiddleware

func GoodLoggerMiddleware(logger *zap.Logger) 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