Documentation ¶
Index ¶
- type Repository
- func (r *Repository) Close()
- func (r *Repository) CreateProject(project *models.Project) error
- func (r *Repository) CreateTask(task *models.Task) error
- func (r *Repository) DeleteProject(id int) error
- func (r *Repository) DeleteTask(id int) error
- func (r *Repository) GetAllProjects() ([]*models.Project, error)
- func (r *Repository) GetAllTasks() ([]*models.Task, error)
- func (r *Repository) GetProjectByID(id int) (*models.Project, error)
- func (r *Repository) GetProjectByName(name string) (*models.Project, error)
- func (r *Repository) GetTaskByID(id int) (*models.Task, error)
- func (r *Repository) GetTasksByProjectID(projectID int) ([]*models.Task, error)
- func (r *Repository) UpdateProject(project *models.Project) error
- func (r *Repository) UpdateTask(task *models.Task) error
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
Click to show internal directories.
Click to hide internal directories.