api

package
v0.0.0-...-3b06f95 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTodoItem

func CreateTodoItem(c *gin.Context)

Create todo item and add to DB

func DeleteTodoItem

func DeleteTodoItem(c *gin.Context)

Delete todo item

func SetupPostgres

func SetupPostgres()

func TodoItems

func TodoItems(c *gin.Context)

List all todo items

func UpdateTodoItem

func UpdateTodoItem(c *gin.Context)

Update todo item

Types

type ListItem

type ListItem struct {
	Id   string `json:"id"`
	Item string `json:"item"`
	Done bool   `json:"done"`
}

Jump to

Keyboard shortcuts

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