middlewares

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BasicAuth added in v1.0.2

func BasicAuth(handler http.Handler, username, password, realm string) http.HandlerFunc

Basic authentication for Prometheus

func IsAuthenticated

func IsAuthenticated(env configs.Environment, token string) gin.HandlerFunc

IsAuthenticated is a gin middleware function for checking if the request is authenticated or not

Types

This section is empty.

Jump to

Keyboard shortcuts

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