todo

package
v0.0.0-...-6855f9b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository interface {
	GetToDoList() ([]ToDo, error)
	CreateToDo(ToDo) (int64, error)
	CompleteToDo(int64) error
	DeleteToDo(int64) error
}

type Service

type Service interface {
	GetToDoList() ([]ToDo, error)
	CreateToDo(ToDo) (int64, error)
	CompleteToDo(int64) error
	DeleteToDo(int64) error
}

type ToDo

type ToDo struct {
	ID          uint   `json:"id"`
	Description string `json:"description"`
	IsCompleted bool   `json:"isCompleted"`
	IsDeleted   bool   `json:"isDeleted"`
}

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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