package
Version:
v0.0.0-...-6f82975
Opens a new window with list of versions in this module.
Published: Aug 25, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func AddUser(c *fiber.Ctx) error
AddUser function
func Auth(c *fiber.Ctx) error
Auth authentication handler
func Home(c *fiber.Ctx) error
Home handler
func Timeout(c *fiber.Ctx) error
Timeout handler
type Job struct {
Type string `json:"type" validate:"required,min=3,max=32"`
Salary int `json:"salary" validate:"required,number"`
}
Job struct
type User struct {
Name string `json:"name" validate:"required,min=3,max=32"`
IsActive bool `json:"isactive" validate:"required,eq=True|eq=False"`
Email string `json:"email" validate:"required,email,min=6,max=32"`
Job Job `json:"job" validate:"dive"`
}
User struct
Source Files
¶
Click to show internal directories.
Click to hide internal directories.