repository

package
v0.0.0-...-acaafe5 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TodoRepository

type TodoRepository interface {
	// List lists all todos
	List() ([]models.Todo, error)
	// GetByID gets todo by its id
	GetByID(todoID int64) (*models.Todo, error)
	// Create creates new todo
	Create(description string) error
	// Update updates / modifies existing todo by its id
	Update(todoID int64, updates map[string]interface{}) (*models.Todo, error)
	// Delete deletes todo by its id
	Delete(todoID int64) (bool, error)
}

TodoRepository provides method to interact with todo resource.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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