Documentation
¶
Index ¶
- type Action
- type Role
- func (role *Role) Can(action string) gin.HandlerFunc
- func (role *Role) Can1(action string) gin.HandlerFunc
- func (role *Role) Can2(action string) gin.HandlerFunc
- func (role *Role) Can3(action string) gin.HandlerFunc
- func (role *Role) Can4(action string) gin.HandlerFunc
- func (role *Role) Can5(action string) gin.HandlerFunc
- func (role *Role) Can6(action string) gin.HandlerFunc
- func (role *Role) Plugin() *Role
- func (role *Role) Pre(c *bulrush.Config)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct {
Roles []string
// contains filtered or unexported fields
}
Action for role
type Role ¶
type Role struct {
FailureHandler func(*gin.Context, string)
RoleHandler func(*gin.Context, string) bool
RoleHandler1 func(*gin.Context, string) bool
RoleHandler2 func(*gin.Context, string) bool
RoleHandler3 func(*gin.Context, string) bool
RoleHandler4 func(*gin.Context, string) bool
RoleHandler5 func(*gin.Context, string) bool
RoleHandler6 func(*gin.Context, string) bool
}
Role for role
Click to show internal directories.
Click to hide internal directories.