Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GreetHandler ¶
func GreetHandler(c *fiber.Ctx) error
Types ¶
type UserController ¶
type UserController struct {
// contains filtered or unexported fields
}
func (*UserController) GetAllUsers ¶
func (controller *UserController) GetAllUsers(c *fiber.Ctx) error
GetAllUsers retrieves all users from the UserController.
c is a pointer to a fiber.Ctx object that represents the HTTP request context. It is used to handle the response and any potential errors.
The function returns an error if there is an issue retrieving the users. Otherwise, it returns the retrieved users as a JSON response.
Click to show internal directories.
Click to hide internal directories.