repo

package
v0.0.0-...-7a06b2d Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProjectRepository

type ProjectRepository interface {
	FindAll() ([]*model.Project, error)
	FindByTitle(title string) (*model.Project, error)
	Create(project *model.Project) error
	Update(project *model.Project) error
	Delete(project *model.Project) error
}

type ProjectRepositoryImpl

type ProjectRepositoryImpl struct {
	DB *gorm.DB
}

func (*ProjectRepositoryImpl) Create

func (pri *ProjectRepositoryImpl) Create(project *model.Project) error

func (*ProjectRepositoryImpl) Delete

func (pri *ProjectRepositoryImpl) Delete(project *model.Project) error

func (*ProjectRepositoryImpl) FindAll

func (pri *ProjectRepositoryImpl) FindAll() ([]*model.Project, error)

func (*ProjectRepositoryImpl) FindByTitle

func (pri *ProjectRepositoryImpl) FindByTitle(title string) (*model.Project, error)

func (*ProjectRepositoryImpl) Update

func (pri *ProjectRepositoryImpl) Update(project *model.Project) error

type TaskRepository

type TaskRepository interface {
	FindAll(project *model.Project) ([]*model.Task, error)
	FindByID(project *model.Project, ID int) (*model.Task, error)
	Create(task *model.Task) error
	Update(task *model.Task) error
	Delete(task *model.Task) error
}

type TaskRepositoryImpl

type TaskRepositoryImpl struct {
	DB *gorm.DB
}

func (*TaskRepositoryImpl) Create

func (tri *TaskRepositoryImpl) Create(task *model.Task) error

func (*TaskRepositoryImpl) Delete

func (tri *TaskRepositoryImpl) Delete(task *model.Task) error

func (*TaskRepositoryImpl) FindAll

func (tri *TaskRepositoryImpl) FindAll(project *model.Project) ([]*model.Task, error)

func (*TaskRepositoryImpl) FindByID

func (tri *TaskRepositoryImpl) FindByID(project *model.Project, ID int) (*model.Task, error)

func (*TaskRepositoryImpl) Update

func (tri *TaskRepositoryImpl) Update(task *model.Task) error

Jump to

Keyboard shortcuts

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