Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthMiddleware ¶
func AuthMiddleware(requiredLevel int) gin.HandlerFunc
AuthMiddleware deals with checking authentication and authorization (Is the user logged in and permitted to see/do something)
Types ¶
type AuthenticationError ¶
func (*AuthenticationError) Error ¶
func (e *AuthenticationError) Error() string
Click to show internal directories.
Click to hide internal directories.