middlewares

package
v0.0.0-...-035dfa4 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: MIT 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

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
JackTT - Gopher 🇻🇳