middlewares

package
v0.0.0-...-7516326 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthorizeJWT

func AuthorizeJWT() gin.HandlerFunc

AuthorizeJWT validates the token from the http request, returning a 401 if it's not valid

func BasicAuth

func BasicAuth() gin.HandlerFunc

BasicAuth takes as argument a map[string]string where the key is the user name and the value is the password.

func Logger

func Logger() gin.HandlerFunc

Logger returns a middleware with the specified log format function.

Types

This section is empty.

Jump to

Keyboard shortcuts

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