repositories

package
v0.0.0-...-be1cca4 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Task

type Task struct {
	Id           int         `json:"id"`
	Title        string      `json:"title"`
	Description  string      `json:"description"`
	Created_at   time.Time   `json:"created_at"`
	Updated_at   time.Time   `json:"updated_at"`
	Completed_at pq.NullTime `json:"completed_at"`
}

type TasksRepository

type TasksRepository interface {
	FindAll() ([]*Task, error)
	FindById(id int) (*Task, error)
	Create(task *Task) error
	Update(task *Task) error
	Delete(id int) error
	ToggleStatus(id int) error
}

func New

func New() TasksRepository

Jump to

Keyboard shortcuts

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