project

package
v0.0.0-...-4402e7d Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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

Jump to

Keyboard shortcuts

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