Documentation
¶
Index ¶
- func NewArticleUseCase(cfg *configs.Configs, articleRepo articles.Repository, fithouUS fithou.UseCase) articles.UseCase
- type ArticleUS
- func (a *ArticleUS) AddNewSubscriber(ctx context.Context, id string) error
- func (a *ArticleUS) FindOne(ctx context.Context) (*models.Article, error)
- func (a *ArticleUS) RemoveSubscriber(ctx context.Context, id string) error
- func (a *ArticleUS) UpdatedWithNewArticle(ctx context.Context) (*types.UpdatedWithNewArticleResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewArticleUseCase ¶
Types ¶
type ArticleUS ¶
type ArticleUS struct {
// contains filtered or unexported fields
}
func (*ArticleUS) AddNewSubscriber ¶
func (*ArticleUS) RemoveSubscriber ¶
func (*ArticleUS) UpdatedWithNewArticle ¶
Click to show internal directories.
Click to hide internal directories.