user

package
v0.0.0-...-1bc6f7f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUser

func CreateUser(c *fiber.Ctx) error

*HTTP POST* - Creates a new user

func GetAllUsers

func GetAllUsers(c *fiber.Ctx) error

*HTTP GET* - Gets all the users from the database

func GetUserById

func GetUserById(c *fiber.Ctx) error

*HTTP GET* - Gets a specific user based on user ID

func GetUserByName

func GetUserByName(c *fiber.Ctx) error

*HTTP GET* - Gets a specific user based on user name

func SetupUserRoutes

func SetupUserRoutes(db *gorm.DB, group fiber.Router)

Types

type User

type User struct {
	ID        uint
	Username  string
	Email     string
	About     string
	CreatedAt time.Time
	UpdatedAt time.Time
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL