Documentation ¶
Index ¶
- func NewForumUsecase(repositoryForum forum.Repository, repositoryThread thread.Repository, ...) forum.Usecase
- type ForumUsecase
- func (f ForumUsecase) CreateForum(data *model.Forum) (*model.Forum, int, error)
- func (f ForumUsecase) CreateThread(slug string, newThread *model.NewThread) (*model.Thread, int, error)
- func (f ForumUsecase) Find(slug string) (*model.Forum, error)
- func (f ForumUsecase) GetThreadsByForum(forumSlug string, limitValue string, descValue bool, sinceValue string) ([]model.Thread, int, error)
- func (f ForumUsecase) GetUsersByForum(slug string, limitValue string, descValue bool, sinceValue string) ([]model.User, int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewForumUsecase ¶
func NewForumUsecase(repositoryForum forum.Repository, repositoryThread thread.Repository, repositoryUser user.Repository, cache *cache.Cache) forum.Usecase
Types ¶
type ForumUsecase ¶
type ForumUsecase struct { Cache *cache.Cache // contains filtered or unexported fields }
func (ForumUsecase) CreateForum ¶
func (ForumUsecase) CreateThread ¶
func (ForumUsecase) GetThreadsByForum ¶
Click to show internal directories.
Click to hide internal directories.