Documentation ¶
Index ¶
- type CreationData
- type MutationData
- type Service
- func (s *Service) Create(ctx context.Context, data CreationData) (*domain.Article, error)
- func (s *Service) Delete(ctx context.Context, slug string) error
- func (s *Service) Get(ctx context.Context, slug string) (*domain.Article, error)
- func (s *Service) GetAll(ctx context.Context, criteria domain.ArticleCriteria) ([]*domain.Article, error)
- func (s *Service) Update(ctx context.Context, slug string, data MutationData) (*domain.Article, error)
- type TagService
- type TagUseCase
- type UseCase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreationData ¶
type MutationData ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewArticleService ¶
func NewArticleService(articleRepo port.ArticleRepository, tagService port.CreateTagService) *Service
type TagService ¶
type TagService struct {
// contains filtered or unexported fields
}
func NewTagService ¶
func NewTagService(repo port.TagRepository) *TagService
type TagUseCase ¶
type UseCase ¶
type UseCase interface { Create(ctx context.Context, data CreationData) (*domain.Article, error) Get(ctx context.Context, slug string) (*domain.Article, error) GetAll(ctx context.Context, criteria domain.ArticleCriteria) ([]*domain.Article, error) Update(ctx context.Context, slug string, data MutationData) (*domain.Article, error) Delete(ctx context.Context, slug string) error }
Click to show internal directories.
Click to hide internal directories.