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.
Click to show internal directories.
Click to hide internal directories.