Documentation ¶
Index ¶
- Variables
- func Login(db *model.DBEngine) gin.HandlerFunc
- func LoginPage(c *gin.Context)
- func LoginV2(db *model.DBEngine) gin.HandlerFunc
- func Logout(c *gin.Context)
- func LogoutV2(db *model.DBEngine) gin.HandlerFunc
- func Register(db *model.DBEngine) gin.HandlerFunc
- func RegisterPage(c *gin.Context)
- func RegisterV2(db *model.DBEngine) gin.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var UserEmailAlreadyExistsError = errors.New("user email already exists")
View Source
var UserNameAlreadyExistsError = errors.New("user name already exists")
Functions ¶
func Login ¶
func Login(db *model.DBEngine) gin.HandlerFunc
Login check if user's name, email exists and password right
func LoginV2 ¶
func LoginV2(db *model.DBEngine) gin.HandlerFunc
LoginV2 check if user's name, email exists and password right
func Register ¶
func Register(db *model.DBEngine) gin.HandlerFunc
Register take the account and password to create a new user
func RegisterPage ¶
func RegisterV2 ¶
func RegisterV2(db *model.DBEngine) gin.HandlerFunc
RegisterV2 take the account and password to create a new user
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.