routes

package
v0.0.0-...-6b14d14 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureRouters

func ConfigureRouters(router *gin.Engine)

ConfigureRouters -> configure route handlers

func CreateNewTask

func CreateNewTask(c *gin.Context)

CreateNewTask -> create new task

func DeleteTask

func DeleteTask(c *gin.Context)

DeleteTask -> delete task

func GetAllTasks

func GetAllTasks(c *gin.Context)

GetAllTasks -> retrieve all taks

func GetTaskByID

func GetTaskByID(c *gin.Context)

GetTaskByID -> retrieve task by ID

func JSONError

func JSONError(err error) map[string]interface{}

JSONError -> for http 500

func JSONValidator

func JSONValidator(code string, message string) map[string]interface{}

JSONValidator -> for http 400/401/422/404

func UpdateTask

func UpdateTask(c *gin.Context)

UpdateTask -> update task

Types

This section is empty.

Jump to

Keyboard shortcuts

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