controller

package
v0.0.0-...-b718ee8 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

internal/app/controller/auth.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthController

type AuthController struct {
	AuthService services.AuthServiceInterface
}

func (*AuthController) SignIn

func (authController *AuthController) SignIn(c *fiber.Ctx) error

func (*AuthController) SignOut

func (authController *AuthController) SignOut(c *fiber.Ctx) error

func (*AuthController) SignUp

func (authController *AuthController) SignUp(c *fiber.Ctx) error

type AuthControllerInterface

type AuthControllerInterface interface {
	SignUp(c *fiber.Ctx) error
	SignIn(c *fiber.Ctx) error
	SignOut(c *fiber.Ctx) error
}

func GetAuthController

func GetAuthController(authService services.AuthServiceInterface) AuthControllerInterface

func NewAuthController

func NewAuthController(authService services.AuthServiceInterface) AuthControllerInterface

type TaskController

type TaskController struct {
	TaskService services.TaskServiceInterface
}

func (*TaskController) CreateTask

func (t *TaskController) CreateTask(c *fiber.Ctx) error

func (*TaskController) DeleteTask

func (t *TaskController) DeleteTask(c *fiber.Ctx) error

func (*TaskController) GetTask

func (t *TaskController) GetTask(c *fiber.Ctx) error

func (*TaskController) ListTasks

func (t *TaskController) ListTasks(c *fiber.Ctx) error

func (*TaskController) UpdateTask

func (t *TaskController) UpdateTask(c *fiber.Ctx) error

type TaskControllerInterface

type TaskControllerInterface interface {
	CreateTask(c *fiber.Ctx) error
	UpdateTask(c *fiber.Ctx) error
	GetTask(c *fiber.Ctx) error
	DeleteTask(c *fiber.Ctx) error
	ListTasks(c *fiber.Ctx) error
}

func GetTaskController

func GetTaskController(taskService services.TaskServiceInterface) TaskControllerInterface

func NewTaskController

func NewTaskController(taskService services.TaskServiceInterface) TaskControllerInterface

Jump to

Keyboard shortcuts

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