user

package
v0.0.0-...-f81473c Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllUsers

func GetAllUsers() fiber.Handler

GetAllUsers fetches all the users from the database - admin only

func GetUser

func GetUser() fiber.Handler

GetUser - gets a user by id

func GetUserById

func GetUserById(id string) (*model.User, error)

GetUserById - gets a user by id

func UpdateUser

func UpdateUser() fiber.Handler

UpdateUser - updates a user Fields that can be updated:

  • firstname
  • lastname
  • username
  • phone
  • gender

Types

This section is empty.

Jump to

Keyboard shortcuts

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