handlers

package
v0.0.0-...-9f65b07 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTodo

func CreateTodo(c *fiber.Ctx) error

func DeleteTodo

func DeleteTodo(c *fiber.Ctx) error

func GetTodos

func GetTodos(c *fiber.Ctx) error

func GetUserProfile

func GetUserProfile(c *fiber.Ctx) error

func Login

func Login(c *fiber.Ctx) error

func Register

func Register(c *fiber.Ctx) error

func UpdateTodo

func UpdateTodo(c *fiber.Ctx) error

Types

type RegisterInput

type RegisterInput struct {
	Name     string `json:"name"`
	Email    string `json:"email"`
	Password string `json:"password"`
}

type UserStats

type UserStats struct {
	TotalTodos     int64         `json:"totalTodos"`
	CompletedTodos int64         `json:"completedTodos"`
	PendingTodos   int64         `json:"pendingTodos"`
	CompletionRate float64       `json:"completionRate"`
	RecentTodos    []models.Todo `json:"recentTodos"`
}

Jump to

Keyboard shortcuts

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