Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitGinMiddleware ¶
func InitGinMiddleware(nc *nats.Conn)
InitGinMiddleware instantiates the nats connection for checking authorization
func IsInOneRole ¶
func IsInOneRole(roles []string) gin.HandlerFunc
IsInOneRole checks to see if the jwt is is one of the roles listed
func IsInRequiredRoles ¶
func IsInRequiredRoles(roles []string) gin.HandlerFunc
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.