forum_usecase

package
v0.0.0-...-372bfc1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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 (f ForumUsecase) CreateForum(data *model.Forum) (*model.Forum, int, error)

func (ForumUsecase) CreateThread

func (f ForumUsecase) CreateThread(slug string, newThread *model.NewThread) (*model.Thread, int, error)

func (ForumUsecase) Find

func (f ForumUsecase) Find(slug string) (*model.Forum, error)

func (ForumUsecase) GetThreadsByForum

func (f ForumUsecase) GetThreadsByForum(forumSlug string, limitValue string, descValue bool, sinceValue string) ([]model.Thread, int, error)

func (ForumUsecase) GetUsersByForum

func (f ForumUsecase) GetUsersByForum(slug string, limitValue string, descValue bool, sinceValue string) ([]model.User, int, error)

Jump to

Keyboard shortcuts

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