//
pkg.gl
Category
github.com/Paxman23l/golang-api-tools
middleware
echomiddleware
package
0.1.15
Repository:
https://github.com/paxman23l/golang-api-tools.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
6
Dependents
0
Files
66 SLOC
#
Functions
InitEchoMiddleware
InitEchoMiddleware instantiates the nats connection for checking authorization.
IsInOneRole
IsInOneRole checks to see if the jwt is is one of the roles listed.
IsInRequiredRoles
IsInRequiredRoles checks to see if the jwt has the correct roles.