Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitEchoMiddleware ¶
func InitEchoMiddleware(nc *nats.Conn)
InitEchoMiddleware instantiates the nats connection for checking authorization
func IsInOneRole ¶
func IsInOneRole(roles []string) echo.MiddlewareFunc
IsInOneRole checks to see if the jwt is is one of the roles listed
func IsInRequiredRoles ¶
func IsInRequiredRoles(roles []string) echo.MiddlewareFunc
IsInRequiredRoles checks to see if the jwt has the correct roles
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.