services

package
v0.0.0-...-84c2604 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTodo

func CreateTodo(title, description string, completed bool) (todo models.Todo, err error)

func DeleteAllTodos

func DeleteAllTodos()

func DeleteTodo

func DeleteTodo(todo *models.Todo) error

func FetchById

func FetchById(id uint) (todo models.Todo, err error)

func FetchPendingTodos

func FetchPendingTodos(page, pageSize int, completed bool) ([]models.Todo, int)

func FetchTodos

func FetchTodos(page, pageSize int) ([]models.Todo, int)

func UpdateTodo

func UpdateTodo(id uint, title, description string, completed bool) (todo models.Todo, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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