repository

package
v0.0.0-...-8cb9352 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: GPL-3.0 Imports: 8 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 struct {
	// contains filtered or unexported fields
}

func NewRepository

func NewRepository() (*Repository, error)

func (*Repository) Close

func (r *Repository) Close()

func (*Repository) CreateProject

func (r *Repository) CreateProject(project *models.Project) error

func (*Repository) CreateTask

func (r *Repository) CreateTask(task *models.Task) error

func (*Repository) DeleteProject

func (r *Repository) DeleteProject(id int) error

func (*Repository) DeleteTask

func (r *Repository) DeleteTask(id int) error

func (*Repository) GetAllProjects

func (r *Repository) GetAllProjects() ([]*models.Project, error)

func (*Repository) GetAllTasks

func (r *Repository) GetAllTasks() ([]*models.Task, error)

func (*Repository) GetProjectByID

func (r *Repository) GetProjectByID(id int) (*models.Project, error)

func (*Repository) GetProjectByName

func (r *Repository) GetProjectByName(name string) (*models.Project, error)

func (*Repository) GetTaskByID

func (r *Repository) GetTaskByID(id int) (*models.Task, error)

func (*Repository) GetTasksByProjectID

func (r *Repository) GetTasksByProjectID(projectID int) ([]*models.Task, error)

func (*Repository) UpdateProject

func (r *Repository) UpdateProject(project *models.Project) error

func (*Repository) UpdateTask

func (r *Repository) UpdateTask(task *models.Task) error

Jump to

Keyboard shortcuts

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