Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotAdmin = errors.New("Has not admin role.") ErrNotContentAdmin = errors.New("Has not content admin role.") )
Functions ¶
This section is empty.
Types ¶
type JwtMiddleware ¶
type JwtMiddleware struct {
*jwt.GinJWTMiddleware
}
func GetAuthMiddleware ¶
func GetAuthMiddleware() *JwtMiddleware
func (*JwtMiddleware) AdminMiddleware ¶
func (mw *JwtMiddleware) AdminMiddleware(c *gin.Context)
func (*JwtMiddleware) ContentAdminMiddleware ¶
func (mw *JwtMiddleware) ContentAdminMiddleware(c *gin.Context)
Click to show internal directories.
Click to hide internal directories.