echomiddleware

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2020 License: MIT Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

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