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