todo

package
v0.0.0-...-34af5e3 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2018 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	DB *pg.DB
}

Service is the service dealing with storing and retrieving todo items from the database.

func (Service) CreateTodo

CreateTodo creates a todo given a description

func (Service) CreateTodos

CreateTodos create todo items from a list of todo descriptions

func (Service) DeleteTodo

DeleteTodo deletes a todo given an ID

func (Service) GetTodo

GetTodo retrieves a todo item from its ID

func (Service) ListTodo

ListTodo retrieves a todo item from its ID

func (Service) UpdateTodo

UpdateTodo updates a todo item

func (Service) UpdateTodos

UpdateTodos updates todo items given their respective title and description.

Jump to

Keyboard shortcuts

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