controllers

package
v0.0.0-...-ad3f63c Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

controllers/user_controller.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserController

type UserController struct {
	UserService *services.UserService
	Validate    *validator.Validate
	RedisClient *redis.Client
}

func NewUserController

func NewUserController(userService *services.UserService, validate *validator.Validate, redisClient *redis.Client) *UserController

func (*UserController) CreateUser

func (ctrl *UserController) CreateUser(c *fiber.Ctx) error

func (*UserController) GetAllUsers

func (ctrl *UserController) GetAllUsers(c *fiber.Ctx) error

func (*UserController) GetUsers

func (ctrl *UserController) GetUsers(c *fiber.Ctx) error

Jump to

Keyboard shortcuts

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