handler

package
v0.0.0-...-572132b Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTask

func CreateTask(c *fiber.Ctx) error

func DeleteTask

func DeleteTask(c *fiber.Ctx) error

func GenerateStudyMetrics

func GenerateStudyMetrics(c *fiber.Ctx) error

func GetAllTasks

func GetAllTasks(c *fiber.Ctx) error

func GetTask

func GetTask(c *fiber.Ctx) error

func Health

func Health(c *fiber.Ctx) error

func HealthProtected

func HealthProtected(c *fiber.Ctx) error

func StartPomodoro

func StartPomodoro(c *fiber.Ctx) error

func StopPomodoro

func StopPomodoro(c *fiber.Ctx) error

func UpdateTask

func UpdateTask(c *fiber.Ctx) error

Types

type CreateTaskPayload

type CreateTaskPayload struct {
	Title       string `json:"title"`
	Description string `json:"description"`
	DueDate     string `json:"due_date"`
}

type UpdateTaskPayload

type UpdateTaskPayload struct {
	Title       string `json:"title"`
	Description string `json:"description"`
	DueDate     string `json:"due_date"`
	IsComplete  bool   `json:"is_complete"`
}

Jump to

Keyboard shortcuts

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