controller

package
v0.0.0-...-a003bba Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TaskController

type TaskController struct {
	TaskSvc *services.TaskService
}

TaskController is a controller struct

func NewController

func NewController(taskTrackerSvc *services.TaskService) *TaskController

NewController returns a TaskController pointer

func (*TaskController) CreateTask

func (ttc *TaskController) CreateTask(c echo.Context) error

CreateTask adds a new task

func (*TaskController) DeleteTask

func (ttc *TaskController) DeleteTask(c echo.Context) error

DeleteTask deletes a task

func (*TaskController) GetTask

func (ttc *TaskController) GetTask(c echo.Context) error

GetTask returns a task

func (*TaskController) GetTasks

func (ttc *TaskController) GetTasks(c echo.Context) error

GetTasks returns all the tasks

func (*TaskController) UpdateTask

func (ttc *TaskController) UpdateTask(c echo.Context) error

UpdateTask updates a task

Jump to

Keyboard shortcuts

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