Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckLoginRequest ¶
func CheckLoginRequest() gin.HandlerFunc
CheckLoginRequest checks if the user is logged in and if not it returns an error this is for automated requests
func CheckLoginUser ¶
func CheckLoginUser() gin.HandlerFunc
CheckLoginUser checks if the user is logged in and if not redirects to the login page this if for manual user requests
func SetRequiredFunctions ¶
func SetRequiredFunctions(userExistFunc UserExistFunc, getUserByIDFunc GetUserByIDFunc, createUserFunc CreateUserFunc)
Types ¶
type UserExistFunc ¶
Click to show internal directories.
Click to hide internal directories.