package
Version:
v1.1.0
Opens a new window with list of versions in this module.
Published: Mar 24, 2024
License: GPL-3.0
Opens a new window with license information.
Imports: 14
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func Become(c *fiber.Ctx) error
func Create(c *fiber.Ctx) error
func Delete(c *fiber.Ctx) error
func Edit(c *fiber.Ctx) error
func List(c *fiber.Ctx) error
func ViewCreate(c *fiber.Ctx) error
func ViewEdit(c *fiber.Ctx) error
type CreateForm struct {
Username string `form:"username" validate:"required,max=20" transform:"trim"`
Password string `form:"password" validate:"required,min=4" transform:"trim"`
ConfirmPassword string `form:"confirm_password" validate:"required" transform:"trim"`
Role string `form:"role" validate:"required,role"`
}
type EditForm struct {
Password string `form:"password" validate:"omitempty,min=4" transform:"trim"`
ConfirmPassword string `form:"confirm_password" transform:"trim"`
Role string `form:"role" validate:"required,role"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.