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
Click to show internal directories.
Click to hide internal directories.