Documentation
¶
Index ¶
- type DbContext
- type Project
- type ProjectEntity
- type QueryResult
- type Repository
- type Service
- func (service *Service) CreateProject(ctx context.Context, project Project) (dal.Entity, error)
- func (service *Service) DeleteProject(ctx context.Context, id string) error
- func (service *Service) FindProjects(ctx context.Context, q dal.Query) (QueryResult, error)
- func (service *Service) GetProject(ctx context.Context, id string) (ProjectEntity, error)
- func (service *Service) UpdateProject(ctx context.Context, project UpdateProject) (dal.Entity, error)
- type UpdateProject
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DbContext ¶
type DbContext interface {
GetProjectsRepository() (Repository, error)
}
type Project ¶
type Project struct {
dal.Definition
}
type ProjectEntity ¶
type QueryResult ¶
type QueryResult struct {
dal.QueryResult
Data []ProjectEntity
}
type Repository ¶
type Repository interface {
Get(ctx context.Context, id string) (ProjectEntity, error)
Find(ctx context.Context, query dal.Query) (QueryResult, error)
Create(ctx context.Context, project Project) (dal.Entity, error)
Update(ctx context.Context, project UpdateProject) (dal.Entity, error)
Delete(ctx context.Context, id string) error
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) CreateProject ¶
func (*Service) DeleteProject ¶
func (*Service) FindProjects ¶
func (*Service) GetProject ¶
func (*Service) UpdateProject ¶
type UpdateProject ¶
Click to show internal directories.
Click to hide internal directories.