handler

package
v0.0.0-...-5f814d2 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTask

func CreateTask(ctx *gin.Context)

func DeleteTask

func DeleteTask(ctx *gin.Context)

func EditTask

func EditTask(ctx *gin.Context)

func GetTask

func GetTask(ctx *gin.Context)

func InitializeHandler

func InitializeHandler()

func ListTask

func ListTask(ctx *gin.Context)

Types

type CreateTaskRequest

type CreateTaskRequest struct {
	Title       string `json:"title" binding:"required"`
	Description string `json:"description" binding:"required"`
}

type UpdateTaskRequest

type UpdateTaskRequest struct {
	Title       string `json:"title"`
	Description string `json:"description"`
	Completed   bool   `json:"completed"`
}

Jump to

Keyboard shortcuts

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