Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasRole ¶
func HasRole(roles ...string) gin.HandlerFunc
HasRole middleware, depends on registration of auth.Validator
func ValidateToken ¶
func ValidateToken(certificate string) gin.HandlerFunc
ValidateToken is a middleware to validate the JWT token sent by the client
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.