Documentation ¶
Overview ¶
Package middlewares provides middlewares
Package middlewares provides middlewares
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthMiddleware ¶
AuthMiddleware is a middleware to verify the user is authenticated.
func HeadersMiddleware ¶
HeadersMiddleware sets "Content-Type" header to "application/json"
func LogMiddleware ¶
LogMiddleware logs information about the request
func SetupMiddleWares ¶
SetupMiddleWares takes a *mux.Router and sets it to use the middlewares
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.