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.
Click to show internal directories.
Click to hide internal directories.