Documentation ¶
Index ¶
- func AddUserToContext(next echo.HandlerFunc) echo.HandlerFunc
- func CheckAdminPrivileges(next echo.HandlerFunc) echo.HandlerFunc
- func CheckJWTActive(next echo.HandlerFunc) echo.HandlerFunc
- func CheckUserPrivileges(next echo.HandlerFunc) echo.HandlerFunc
- func SetAdminMiddlewares(g *echo.Group)
- func SetJWTMiddlewares(g *echo.Group)
- func SetMainMiddlewares(e *echo.Echo)
- func SetUserMiddlewares(g *echo.Group)
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 ¶
SetAdminMiddlewares will add middleware to the main echo instance
func SetJWTMiddlewares ¶
SetJWTMiddlewares add all JWT authentication middleware
func SetMainMiddlewares ¶
SetMainMiddlewares will add middleware to the main echo instance
func SetUserMiddlewares ¶
SetUserMiddlewares will add middleware to the main echo instance
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.