middlewares

package
v0.0.0-...-91b8838 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package middlewares provides middlewares

Package middlewares provides middlewares

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthMiddleware

func AuthMiddleware(next http.Handler) http.Handler

AuthMiddleware is a middleware to verify the user is authenticated.

func HeadersMiddleware

func HeadersMiddleware(next http.Handler) http.Handler

HeadersMiddleware sets "Content-Type" header to "application/json"

func LogMiddleware

func LogMiddleware(next http.Handler) http.Handler

LogMiddleware logs information about the request

func SetupMiddleWares

func SetupMiddleWares(r *mux.Router)

SetupMiddleWares takes a *mux.Router and sets it to use the middlewares

Types

This section is empty.

Jump to

Keyboard shortcuts

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