todo

package
v0.0.0-...-18a316a Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CategoriesList []CategoryStruct
View Source
var CurrentCategoryID int = 1
View Source
var CurrentTaskID int = 1
View Source
var TasksList []ToDoStruct

Functions

func AddNewCatergory

func AddNewCatergory(c *gin.Context)

func AddNewTask

func AddNewTask(c *gin.Context)

func CORSMiddleware

func CORSMiddleware() gin.HandlerFunc

CORSMiddleware middleware headers for any RESTful requests {{{

func DeleteCategory

func DeleteCategory(c *gin.Context)

func DeleteTask

func DeleteTask(c *gin.Context)

func EditCategory

func EditCategory(c *gin.Context)

func EditTask

func EditTask(c *gin.Context)

func GetAllCategory

func GetAllCategory(c *gin.Context)

func GetAllTasks

func GetAllTasks(c *gin.Context)

func GetCategoryTasks

func GetCategoryTasks(c *gin.Context)

func Start

func Start(args []string)

Types

type CategoryStruct

type CategoryStruct struct {
	ID    int    `form:"id"`
	Name  string `form:"name" binding:"required"`
	Color string `form:"color" binding:"required"`
}

type CategoryStructEdit

type CategoryStructEdit struct {
	ID    int    `form:"id" binding:"required"`
	Name  string `form:"name"`
	Color string `form:"color"`
}

type IDRequest

type IDRequest struct {
	ID int `form:"id" binding:"required"`
}

type ToDoStruct

type ToDoStruct struct {
	ID       int    `form:"id"`
	Title    string `form:"title" binding:"required"`
	Text     string `form:"text" binding:"required"`
	Category int    `form:"category"`
	Status   bool   `form:"status"`
}

type ToDoStructEdit

type ToDoStructEdit struct {
	ID       int    `form:"id" binding:"required"`
	Title    string `form:"title"`
	Text     string `form:"text"`
	Category int    `form:"category"`
	Status   bool   `form:"status"`
}

Jump to

Keyboard shortcuts

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