Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //ErrCouldNotGetKeyID error when could not get key id in header ErrCouldNotGetKeyID = errors.New("could not get key id in header") )
Functions ¶
func NewPermissioner ¶
func NewPermissioner(e *casbin.Enforcer) gin.HandlerFunc
NewPermissioner return a gin HandleFunc middleware
Types ¶
type Permissioner ¶
type Permissioner struct {
// contains filtered or unexported fields
}
Permissioner is struct for control permission
Click to show internal directories.
Click to hide internal directories.