Documentation ¶ Index ¶ func CreateUser(c *gin.Context) func Index(c *gin.Context) func LoginForm(c *gin.Context) func LoginUser(c *gin.Context) func RegisterForm(c *gin.Context) type CreateUserInput type LoginUserInput Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func CreateUser ¶ func CreateUser(c *gin.Context) func Index ¶ func Index(c *gin.Context) func LoginForm ¶ func LoginForm(c *gin.Context) func LoginUser ¶ func LoginUser(c *gin.Context) func RegisterForm ¶ func RegisterForm(c *gin.Context) Types ¶ type CreateUserInput ¶ type CreateUserInput struct { Username string `form:"username" binding:"required"` Password string `form:"password" binding:"required"` ConfirmPassword string `form:"password2" binding:"required"` } // UserID will be generated automatically by the database type LoginUserInput ¶ type LoginUserInput struct { ID int Username string `form:"username" binding:"required"` Password string `form:"password" binding:"required"` } // LoginUserID will be generated automatically by the database Source Files ¶ View all Source files userAuth.go Click to show internal directories. Click to hide internal directories.