task

package
v0.0.0-...-ad677ad Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupRoutes

func SetupRoutes(router *gin.Engine, handler *TaskHandler)

Types

type TaskHandler

type TaskHandler struct {
	// contains filtered or unexported fields
}

func NewTaskHandler

func NewTaskHandler(getAllTasksUC *usecase.GetAllTasks, createTaskUC *usecase.CreateTask) *TaskHandler

func (*TaskHandler) Create

func (h *TaskHandler) Create(c *gin.Context)

func (*TaskHandler) GetAll

func (h *TaskHandler) GetAll(c *gin.Context)

GetAll returns all the registered tasks @Summary Get all tasks @Description Get a list of all tasks that wasn't deleted @Tags tasks @Accept json @Success 200 @Failure 501 @Router /tasks [get]

Jump to

Keyboard shortcuts

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