Documentation ¶
Index ¶
- Constants
- type ProjectService
- func (service ProjectService) Delete(project model.Project) error
- func (service ProjectService) DeleteByPath(path string) error
- func (service ProjectService) Get(path string) (model.Project, error)
- func (service *ProjectService) GetAll() ([]*model.Project, error)
- func (service *ProjectService) GetAllFiltered(filter string) ([]*model.Project, error)
- func (service *ProjectService) GetRecent() ([]*model.Project, error)
- type ProjectUsecase
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) DeleteByPath ¶
func (service ProjectService) DeleteByPath(path string) error
func (*ProjectService) GetAllFiltered ¶
func (service *ProjectService) GetAllFiltered(filter string) ([]*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
Click to show internal directories.
Click to hide internal directories.