middlewares

package
v0.0.0-...-e6b7f3d Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthenticateAdmin

func AuthenticateAdmin() mux.MiddlewareFunc

AuthenticateAdmin operates as a middleware for admin endpoints

func AuthenticateJWT

func AuthenticateJWT(authService auth.Auth) mux.MiddlewareFunc

AuthenticateJWT operates as a middleware for private endpoints to verify a JWT

func AuthenticateUser

func AuthenticateUser() mux.MiddlewareFunc

AuthenticateUser operates as a middleware to verify user access

func RecoverPanic

func RecoverPanic(next http.Handler) http.Handler

RecoverPanic operates as a middleware to prevent server crash if a panic occurs

Types

This section is empty.

Jump to

Keyboard shortcuts

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