Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrFindingProject represents an error when a proejct is not found ErrFindingProject = fmt.Errorf("error finding project") // ErrRepositoryNotInitialized represents an error when the store is not initialized ErrRepositoryNotInitialized = fmt.Errorf("project repository not initialized") // ErrProjectIDNotProvided represents an error when the task id is not provided ErrProjectIDNotProvided = fmt.Errorf("project id not provided") )
Functions ¶
This section is empty.
Types ¶
type GetProjectService ¶
type GetProjectService struct {
// contains filtered or unexported fields
}
GetProjectService is a service to get a project
func NewGetProjectService ¶
func NewGetProjectService(repository repository.ProjectRepository, logger repository.Logger) *GetProjectService
NewGetProjectService creates a new GetProjectService
func (*GetProjectService) GetProject ¶
func (p *GetProjectService) GetProject(id string) (*entity.Project, error)
GetProject returns a project by its id
func (*GetProjectService) GetProjectsList ¶
func (p *GetProjectService) GetProjectsList() ([]*entity.Project, error)
GetProjectsList returns all projects
Click to show internal directories.
Click to hide internal directories.