usecase

package
v0.0.0-...-fc9a958 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const RECENT_AMOUNT = 4

Variables

This section is empty.

Functions

This section is empty.

Types

type ProjectService

type ProjectService struct {
	// contains filtered or unexported fields
}

func (ProjectService) Delete

func (service ProjectService) Delete(project model.Project) error

func (ProjectService) DeleteByPath

func (service ProjectService) DeleteByPath(path string) error

func (ProjectService) Get

func (service ProjectService) Get(path string) (model.Project, error)

func (*ProjectService) GetAll

func (service *ProjectService) GetAll() ([]*model.Project, error)

func (*ProjectService) GetAllFiltered

func (service *ProjectService) GetAllFiltered(filter string) ([]*model.Project, error)

func (*ProjectService) GetRecent

func (service *ProjectService) GetRecent() ([]*model.Project, error)

type ProjectUsecase

type ProjectUsecase interface {
	GetAll() ([]*model.Project, error)
	GetAllFiltered(string) ([]*model.Project, error)
	GetRecent() ([]*model.Project, error)
	Get(string) (model.Project, error)
	DeleteByPath(string) error
	Delete(model.Project) error
}

func NewProjectService

func NewProjectService(repo repository.ProjectRepository) ProjectUsecase

Jump to

Keyboard shortcuts

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