middlewares

package
v0.0.0-...-5d64da7 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2018 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddUserToContext

func AddUserToContext(next echo.HandlerFunc) echo.HandlerFunc

AddUserToContext :Extract user and add to context

func CheckAdminPrivileges

func CheckAdminPrivileges(next echo.HandlerFunc) echo.HandlerFunc

CheckAdminPrivileges will make sure that the user is at least an admin

func CheckJWTActive

func CheckJWTActive(next echo.HandlerFunc) echo.HandlerFunc

CheckJWTActive :Extract user and add to context

func CheckUserPrivileges

func CheckUserPrivileges(next echo.HandlerFunc) echo.HandlerFunc

CheckUserPrivileges will make sure that the user is at least an admin

func SetAdminMiddlewares

func SetAdminMiddlewares(g *echo.Group)

SetAdminMiddlewares will add middleware to the main echo instance

func SetJWTMiddlewares

func SetJWTMiddlewares(g *echo.Group)

SetJWTMiddlewares add all JWT authentication middleware

func SetMainMiddlewares

func SetMainMiddlewares(e *echo.Echo)

SetMainMiddlewares will add middleware to the main echo instance

func SetUserMiddlewares

func SetUserMiddlewares(g *echo.Group)

SetUserMiddlewares will add middleware to the main echo instance

Types

This section is empty.

Jump to

Keyboard shortcuts

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