Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IdentityMiddleware ¶
type IdentityMiddleware struct {
// contains filtered or unexported fields
}
func NewMiddleware ¶
func NewMiddleware(userRervice *users.UserService, roleServce *permissions.RoleService, rightService *permissions.RightService, log *zap.Logger) *IdentityMiddleware
func (*IdentityMiddleware) Authenticate ¶
func (m *IdentityMiddleware) Authenticate() gin.HandlerFunc
func (*IdentityMiddleware) Authorize ¶
func (m *IdentityMiddleware) Authorize(roles ...string) gin.HandlerFunc
func (*IdentityMiddleware) AuthorizeSpecific ¶
func (m *IdentityMiddleware) AuthorizeSpecific(rrs []string) gin.HandlerFunc
Click to show internal directories.
Click to hide internal directories.