Documentation ¶
Index ¶
Constants ¶
View Source
const ( RequestIDHeader = "X-Request-Id" RequestAuthCtx ctxKeyRequestAuth = 0 )
Variables ¶
This section is empty.
Functions ¶
func CheckCasbinPermission ¶
func CheckCasbinPermission(casbin *casbin.Enforcer, cfg config.Config) gin.HandlerFunc
Types ¶
type JwtRoleAuth ¶
type JwtRoleAuth struct {
// contains filtered or unexported fields
}
func (*JwtRoleAuth) CheckPermission ¶
func (casb *JwtRoleAuth) CheckPermission(c *gin.Context) (bool, error)
Click to show internal directories.
Click to hide internal directories.