Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorResponseWriter ¶
func ErrorResponseWriter(_ *log.Logger) gin.HandlerFunc
func RoleCheck ¶
func RoleCheck(svc authorization.AuthManager, parseRole func(*gin.Context) (string, error)) gin.HandlerFunc
func SessionCheck ¶
func SessionCheck(svc authorization.AuthManager) gin.HandlerFunc
Types ¶
type MiddlewareError ¶
type MiddlewareError string
func ErrInvalidRole ¶
func ErrInvalidRole(expected, got string) MiddlewareError
func ErrUserNotExist ¶
func ErrUserNotExist(token string) MiddlewareError
func (MiddlewareError) Error ¶
func (e MiddlewareError) Error() string
Click to show internal directories.
Click to hide internal directories.